public RMMessageContext getNextMsgContextToProcess(Object sequence) {
SandeshaQueue sq = SandeshaQueue.getInstance(endPoint);
RMMessageContext msg = null;
try {
msg = sq.nextIncomingMessageToProcess(sequence);
} catch (Exception e) {
SandeshaQueueDAO.log.error(e);
}
return msg;
}