}
return usernames;
}
public JAXBMessage getMessage(Properties properties) throws ApiException, Throwable {
JAXBMessage jaxbMessage = null;
try {
String id = properties.getProperty("id");
Message userMessage = this.getMessageManager().getMessage(id);
if (null == userMessage) {
throw new ApiException(IApiErrorCodes.API_PARAMETER_VALIDATION_ERROR,
"Message '" + id + "' does not exist", Response.Status.CONFLICT);
}
jaxbMessage = new JAXBMessage(userMessage, null);
List<Answer> answers = this.getMessageManager().getAnswers(id);
if (null != answers && !answers.isEmpty()) {
jaxbMessage.addAnswers(answers);
}
} catch (ApiException ae) {
throw ae;
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "getMessage");