// set getParent() as the parent of the cloned class loader
return new URLClassLoader(webappClassLoader.getURLs(), getParent());
}
public void addTransformer(final ClassTransformer transformer) {
webappClassLoader.addByteCodePreprocessor(new BytecodePreprocessor(){
/*
* This class adapts ClassFileTransformer to ByteCodePreprocessor that
* is used inside WebappClassLoader.
*/