// Process MessagePending headers
MessagePendingProcessor pendingProcessor = new MessagePendingProcessor();
pendingProcessor.processMessagePendingHeaders(rmMsgCtx);
// commit the current transaction
if(transaction != null && transaction.isActive()) transaction.commit();
transaction = storageManager.getTransaction();
// Process the Sequence header, if there is one
SequenceProcessor seqProcessor = new SequenceProcessor();
returnValue = seqProcessor.processSequenceHeader(rmMsgCtx, transaction);