if (e instanceof MessagingException)
{
MessagingException messagingException = (MessagingException) e;
if (!messagingException.getEvent().isTransacted() && messagingException.causedRollback())
{
rollbackMethod.rollback();
}
}
else
{
getEndpoint().getMuleContext().getExceptionListener().handleException(e, rollbackMethod);