{
Class<?> clazz = classCache.get(script);
if (clazz == null)
{
String name = "script" + count++;
CompilerEnvirons env = new CompilerEnvirons();
env.setOptimizationLevel(0);
ClassCompiler classCompiler = new ClassCompiler(env);
Object[] ret = classCompiler.compileToClassFiles(script, name + ".js", 1, name);
codeCache.put(name, (byte[])ret[1]);
classCache.put(name, clazz = cl.loadClass(name));
}