ActionReportResult ret = new ActionReportResult(ar, null, optionsResult);
ret.setCommandDisplayName(commandDisplayName);
return ret;
} else {
try {
return new RestResourceMetadata(this).toJson().toString(Util.getFormattingIndentLevel());
} catch (JSONException ex) {
throw new RuntimeException(ex);
}
}
}