return new FileInputStream(file);
}
private void setGlobalVariables(final ScriptContext ctx) {
ctx.setAttribute("context", ctx, ScriptContext.ENGINE_SCOPE);
setGlobalVariables(new GlobalVariables(runtime) {
GlobalVariables parent = runtime.getGlobalVariables();
@Override
public void define(String name, IAccessor accessor) {
assert name != null;