List<String> commands = new ArrayList<String>();
commands.add(editor.getAsText());
commands.addAll(parameters);
DefaultProcessLauncher processLauncher = new DefaultProcessLauncher();
Environment environment = executionContext.getEnvironment();
processLauncher.setWorkingDir(environment.pwd().getAsFile());
processLauncher.addCommands(commands);
processLauncher.addEnvironmentVariables(environment.getVars());
processLauncher.exec();
}
}