}
return status.toString();
}
public void listOfCommands() {
CommandRunner cr = serviceLocator.getService(CommandRunner.class);
RestActionReporter ar = new RestActionReporter();
ParameterMap parameters = new ParameterMap();
cr.getCommandInvocation("list-commands", ar, getSubject())
.parameters(parameters).execute();
List<ActionReport.MessagePart> children = ar.getTopMessagePart().getChildren();
for (ActionReport.MessagePart part : children) {
allCommands.add(part.getMessage());
}
ar = new RestActionReporter();
parameters = new ParameterMap();
parameters.add("DEFAULT", "_");
cr.getCommandInvocation("list-commands", ar).parameters(parameters).execute();
children = ar.getTopMessagePart().getChildren();
for (ActionReport.MessagePart part : children) {
allCommands.add(part.getMessage());
}