if (logger.isDebugEnabled()) {
logger.debug("Processed message, value: " + valueJMSMessage);
}
if(StringUtils.isNotEmpty(valueJMSMessage)){
final EmailNotificationMessageJms emailnotificationMessageJms = xmlMapper.getXmlMapper().readValue(valueJMSMessage, EmailNotificationMessageJms.class);
// TRIGGER A BATCH TO PROCESS THE EMAIL
if (logger.isDebugEnabled()) {
logger.debug("Trigger a new job for a new email, type: " + emailnotificationMessageJms.getEmailType());
}
JobParametersBuilder jobParametersBuilder = new JobParametersBuilder();
jobParametersBuilder.addDate("date", new Date());
JobParameters params = jobParametersBuilder.toJobParameters();