protected Class<?> findClass(String className) throws ClassNotFoundException
{
if (className.equals("org.MyClass"))
{
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
cw.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "org/MyClass", null, "java/lang/Object", null);
return defineClass(className, cw.toByteArray(), 0, cw.toByteArray().length);
}
else
{
return super.findClass(className);