URL engine = classLoader.getResource("META-INF/engine.js");
URL cssmin = classLoader.getResource("META-INF/cssmin.js");
Context cx = Context.enter();
logger.debug("Using implementation version: " + cx.getImplementationVersion());
cx.setOptimizationLevel(9);
Global global = new Global();
global.init(cx);
scope = cx.initStandardObjects(global);
cx.evaluateReader(scope, new InputStreamReader(env.openConnection().getInputStream()), env.getFile(), 1, null);
Scriptable lessEnv = (Scriptable) scope.get("lessenv", scope);
lessEnv.put("charset", lessEnv, options.getCharset());
lessEnv.put("css", lessEnv, options.isCss());