output.getPid(), this)));
if(result == CommandResult.SUCCESS && resultHandler != null)
resultHandler.onSuccess();
else if(resultHandler != null)
resultHandler.onFailure(result);
}
catch (CommandLineParserException | CommandValidatorException | OptionValidatorException e) {
getShell().out().println(e.getMessage());
result = CommandResult.FAILURE;
if(resultHandler != null)