protected PluginRegistry createPluginRegistry(PluginRegistry parentRegistry) {
   return parentRegistry.createChild(project.getClassLoaderScope().createChild("plugins").lock());
 }
 public Class<? extends Plugin> resolve() {
   ClassPath classPath = classPathFactory.create();
   Factory<? extends ClassLoader> loader = parent.loader(classPath);
   PluginRegistry pluginRegistry = new DefaultPluginRegistry(loader, instantiator);
   return pluginRegistry.getTypeForId(pluginId.toString());
 }