MuleMessage msg = receiver.createMuleMessage(payload, receiver.getEndpoint().getEncoding());
// If the job is stateful users can store state in this map and have it available for the next job trigger
msg.setInvocationProperty(
QuartzConnector.PROPERTY_JOB_DATA, jobExecutionContext.getJobDetail().getJobDataMap());
receiver.routeMessage(msg);
}
catch (Exception e)
{
receiver.getFlowConstruct().getExceptionListener().handleException(e, ((MessagingException) e).getEvent());
}