ScriptExecutor executor = createScriptExecutor(inputs);
if (logger.isDebugEnabled())
logger.debug("Script executing...");
ExecutionContext ctx = executor.start();
ctx.waitForExit();
if (logger.isDebugEnabled())
logger.debug("Script execution complete: populating outputs");
Map outputs = getOutputs(executor, ctx);