if (logger.isTraceEnabled())
{
logger.trace("Invoking next MessageProcessor: '" + next.getClass().getName() + "' ");
}
MessageProcessorExecutionTemplate executionTemplateToUse = (!(next instanceof MessageProcessorChain)) ? messageProcessorExecutorWithNotifications : messageProcessorExecutorWithoutNotifications;
try
{
return executionTemplateToUse.execute(next, event);
}
catch (MessagingException e)
{
event.getSession().setValid(false);
throw e;