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()));
String breadcrumb = getBreadcrumbId(msg.getHeaders());