@Override
protected Class findClass(String name) throws ClassNotFoundException {
try {
final CtClass cc = classPool.get( name );
// todo : modify the class definition if not already transformed...
final byte[] b = cc.toBytecode();
return defineClass( name, b, 0, b.length );
}
catch (NotFoundException e) {
throw new ClassNotFoundException();
}