public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException
public void commitLocal(LocalTx xid, ConnectionDelegate connection) throws JMSException
   public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException   {      if (trace) { log.trace("commiting local xid " + xid); }            TxState tx = removeTx(xid);            //Invalid xid      if (tx == null)      {         final String msg = "Cannot find transaction with xid:";         log.error(msg);                  throw new IllegalStateException(msg);      }            TransactionRequest request =         new TransactionRequest(TransactionRequest.ONE_PHASE_COMMIT_REQUEST, null, tx);      connection.sendTransaction(request);         }