public Object commit(Object Xid, SessionDelegate sd) throws JMSException
public Object commit(Object Xid) throws JMSException
   public Object commit(Object Xid, SessionDelegate sd) throws JMSException   {      log.debug("Committing tx: " + Xid);      LocalTx tx = getTx(Xid);      if (tx.getMessages().size() > 0 || tx.getAcks().size() > 0)      {         log.debug("There is stuff to send");         sd.sendTransaction(tx);      }      transactions.remove(Xid);      return createLocalTx();   }