{
if (message.getPayload() instanceof EbMSBaseMessage)
{
try
{
EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
MessageHeader messageHeader = msg.getMessageHeader();
String refToMessageId = messageHeader.getMessageData().getRefToMessageId();
if (!StringUtils.isEmpty(refToMessageId))
//FIXME refToMessageId does not have to refer to another message or to an Acknowledgment or ErrorMessage
if (!ebMSDAO.existsMessage(refToMessageId))