MuleEvent result = dispatcher.process(event);
// We need to invoke notification message processor with request
// message only after successful send/dispatch
if (notificationMessageProcessor == null)
{
notificationMessageProcessor = new OutboundNotificationMessageProcessor(endpoint);
}
notificationMessageProcessor.process(event);
return result;
}