List<MessageHistory> list = exchange.getProperty(Exchange.MESSAGE_HISTORY, List.class);
if (list == null) {
list = new ArrayList<MessageHistory>();
exchange.setProperty(Exchange.MESSAGE_HISTORY, list);
}
MessageHistory history = new DefaultMessageHistory(routeId, definition, new Date());
list.add(history);
return history;
}