context.setOptimizationLevel(this.optimizationLevel);
context.setLanguageVersion(Context.VERSION_1_7);
final ScriptableObject scope = context.initStandardObjects();
final Require require = new Require(Context.getCurrentContext(), scope,
getModuleScriptProvider(clazz), null, null, false);
require.install(scope);
try {
this.moduleScope = new ModuleScope(scope, new URI("./" + this.name), null);
} catch (final URISyntaxException e) {
throw new SmallerException("Failed to create moduleScope", e);
}