MessageProcessorExecutionTemplate executionTemplateToUse = (!(next instanceof MessageProcessorChain)) ? messageProcessorExecutorWithNotifications : messageProcessorExecutorWithoutNotifications;
try
{
return executionTemplateToUse.execute(next, event);
}
catch (MessagingException e)
{
event.getSession().setValid(false);
throw e;