*/
@Override
public Loader newDetachedLoader() {
write.lock();
try {
LayeredClassLoader layeredClassLoader = ((LayeredClassLoader)loader.getSourceClassLoader(engineId));
Loader newLoader = new Loader(engineId, nextLoaderNumber++, false,
layeredClassLoader.cloneWithSeparateTopCodeCache());
return newLoader;
} finally {
write.unlock();
}
}