}
}
return engine;
}
Object ingestScript(String filename, String code, Map<String,Object> env) {
ScriptFile file = new ScriptFile(code);
ScriptEngine engine = getScriptEngine(file.language);
try {
if (env != null) {
Bindings bindings = engine.createBindings();
for(Map.Entry<String,Object> entry : globals.entrySet()) {