return new ScriptEngineManager();
}
private void runGlobalScripts() {
try {
ScriptMonkeyApplicationComponent applicationComponent = ApplicationManager.getApplication().getComponent(ScriptMonkeyApplicationComponent.class);
File jsFolder = new File(applicationComponent.getSettings().getHomeFolder(), Constants.JS_FOLDER_NAME);
File globalScripts = new File(jsFolder, "global");
if (globalScripts.exists()) {
File[] jsFiles = globalScripts.listFiles(new JSFileFilter());
for (File jsFile : jsFiles) {