_resolver = new RuntimeDependencyResolver(_artifactFactory, _artifactResolver, _metadataSource, _localRepository, allRemoteRepositories);
resolver = new RuntimeDependencyResolver(artifactFactory, artifactResolver, metadataSource, localRepository, allRemoteRepositories);
    private void setupRuntimeClasspath ()     throws Exception    {        List allRemoteRepositories = new ArrayList();        allRemoteRepositories.addAll(_remoteRepositories);        allRemoteRepositories.addAll(_pluginRepositories);                if (getLog().isDebugEnabled())        {            Iterator itor = allRemoteRepositories.iterator();            while (itor.hasNext())            {                getLog().debug("Remote repository: "+itor.next());            }        }        _resolver = new RuntimeDependencyResolver(_artifactFactory, _artifactResolver,                 _metadataSource, _localRepository, allRemoteRepositories);                        Set runtimeArtifacts = resolveRuntimeJSP();                        ClassWorld world = new ClassWorld();        ClassRealm realm = world.newRealm("jetty.container", Thread.currentThread().getContextClassLoader());        ClassRealm jspRealm = realm.createChildRealm("jsp");                        URL[] urls = new URL[runtimeArtifacts.size()];        Iterator itor = runtimeArtifacts.iterator();        int i = 0;        while (itor.hasNext())        {            Artifact a = (Artifact)itor.next();            urls[i] = a.getFile().toURL();            getLog().debug("Adding to runtime classpath: "+a);            jspRealm.addConstituent(urls[i]);            i++;         }               Thread.currentThread().setContextClassLoader(jspRealm.getClassLoader());    }