Map<String, String> config = new HashMap<String, String>();
config.put(JschProcessExecutor.KEY_USER, System.getProperty("user.name"));
config.put(JschProcessExecutor.KEY_HOST, "localhost");
config.put(JschProcessExecutor.KEY_PRIVATE_KEY, privateKey.getAbsolutePath());
VariableResolver resolver = VariableResolver.system();
JschProcessExecutor extracted = JschProcessExecutor.extract("testing", config, resolver);
try {
int exit = extracted.execute(
new ExecutionContext("b", "f", "e", ExecutionPhase.MAIN, Collections.<String, String>emptyMap()),