public List<Object> getCurrentMessage(String topic)
//CHECKSTYLE:OFF - WS-Notification spec throws a lot of faults
throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault,
InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault {
//CHECKSTYLE:ON
GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
if (topic != null) {
TopicExpressionType topicExp = new TopicExpressionType();
topicExp.getContent().add(topic);
getCurrentMessageRequest.setTopic(topicExp);
}
GetCurrentMessageResponse response = getBroker().getCurrentMessage(getCurrentMessageRequest);
return response.getAny();
}