context.getMuleContext().fireNotification(
new FunctionalTestNotification(context, replyMessage, FunctionalTestNotification.EVENT_RECEIVED));
if (throwException)
{
throw new DefaultMuleException(MessageFactory.createStaticMessage("Functional Test Service Exception"));
}
return replyMessage;
}