Unmarshaller unmarshaller = context.createUnmarshaller();
SimpleDateFormat sdf = new SimpleDateFormat(BacklogTracerEventMessage.TIMESTAMP_FORMAT);
List<BacklogTracerEventMessage> events;
if (pattern != null) {
events = backlogTracer.dumpTracedMessages(pattern);
} else {
events = backlogTracer.dumpAllTracedMessages();
}
for (BacklogTracerEventMessage event : events) {
MessageDump msg = (MessageDump) unmarshaller.unmarshal(new StringReader(event.getMessageAsXml()));