ActionReport actionReport = __resourceUtil.runCommand(commandName, properties, RestService.getHabitat());
ActionReport.ExitCode exitCode = actionReport.getActionExitCode();
StringResult results = new StringResult(commandName, __resourceUtil.getMessage(actionReport), options());
if (exitCode == ActionReport.ExitCode.SUCCESS) {
results.setStatusCode(200); /*200 - ok*/
} else {
results.setStatusCode(400); /*400 - bad request*/
results.setIsError(true);
results.setErrorMessage(actionReport.getMessage());
}
return results;
} catch (Exception e) {