// commit the current transaction
if(transaction != null && transaction.isActive()) transaction.commit();
transaction = storageManager.getTransaction();
// Process Ack headers in the message
AcknowledgementProcessor ackProcessor = new AcknowledgementProcessor();
ackProcessor.processAckHeaders(rmMsgCtx);
// commit the current transaction
if(transaction != null && transaction.isActive()) transaction.commit();
transaction = storageManager.getTransaction();