byte[] classBytes = javaClass.getBytes();
Class newClass = ByteArrayClassLoader.loadClass(newClassName, classBytes, protectionDomain);
return (CompiledAccessor)newClass.newInstance();
}
catch (IllegalAccessException illegalAccessException) {
throw new WrapperRuntimeException(illegalAccessException);
}
catch (InstantiationException instantiationException) {
throw new WrapperRuntimeException(instantiationException);
}
}