ClassLoader rhinoLoader = getClass().getClassLoader();
GeneratedClassLoader loader;
try {
loader = SecurityController.createLoader(rhinoLoader, sctx.getSecurityDomain());
Class cl = loader.defineClass(className, classBytes);
loader.linkClass(cl);
return (Script) cl.newInstance();
} catch (SecurityException e) {
throw new ScriptException(e);
} catch (IllegalArgumentException e) {
throw new ScriptException(e);