}
@Override
public void notify(EventObject eventObject) throws Exception {
if (eventObject instanceof AbstractExchangeEvent) {
AbstractExchangeEvent aee = (AbstractExchangeEvent) eventObject;
if (isEnabled(aee.getExchange())) {
if (aee instanceof ExchangeSendingEvent) {
aee.getExchange().getIn().setHeader("AuditCallId", aee.getExchange().getContext().getUuidGenerator().generateUuid());
}
String json = toJson(aee);
storage.store(type, System.currentTimeMillis(), json);
}
}