for (Message message : receiveMessagesFromQueue(10)) {
boolean success = false;
EmailModel emailModel = JsonUtil.unmarshall(message.getBody(), EmailModel.class);
convertIntegersToLongs(emailModel);
if (emailModel != null) {
SQSEventDelivery deliveryMechanism = sqsEventDeliveryFactory.getEventDelivery(emailModel.getEventType());
if (deliveryMechanism != null) {
success = deliveryMechanism.sendNotifications(emailModel);
}
if (success) {
deleteMessageFromQueue(message);
} else {