private void executeScript() {
if (scriptEngine != null) {
try {
String environment = SpinScriptEnv.get(scriptEngine.getFactory().getLanguageName());
Bindings bindings = new SimpleBindings(variables);
LOG.executeScriptWithScriptEngine(scriptPath, scriptEngine.getFactory().getEngineName());
scriptEngine.eval(environment, bindings);
scriptEngine.eval(script, bindings);
} catch (ScriptException e) {
throw LOG.scriptExecutionError(scriptPath, e);