case TxCommand.XA_PREPARE:
transactionStore.replayPrepare(command.getTransactionId());
break;
case TxCommand.XA_COMMIT:
case TxCommand.LOCAL_COMMIT:
Tx tx = transactionStore.replayCommit(command.getTransactionId(), command.getWasPrepared());
// Replay the committed operations.
if( tx!=null) {
tx.getOperations();
for (Iterator iter = tx.getOperations().iterator(); iter.hasNext();) {
TxOperation op = (TxOperation) iter.next();
if( op.operationType == TxOperation.ADD_OPERATION_TYPE ) {
op.store.replayAddMessage((ActiveMQMessage) op.data);
}
if( op.operationType == TxOperation.REMOVE_OPERATION_TYPE) {