code: public void commit(final Xid xid, final boolean onePhase)
              throws XAException {
  
          final String methodName = "commit";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, methodName, new Object[] { xid,
                      Boolean.valueOf(onePhase) });
          }
  
          _siXaResource.commit(xid, onePhase);
  
          // Add the value false to indicate we have commited to the hashtable of
          // stats (keying off the xid)
          synchronized (_transactionStates) {
  
            _transactionStates.put (xid, Boolean.FALSE);
  
            if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
              StringBuffer sb = new StringBuffer ("After adding the xid ");
              sb.append (xid);
              sb.append (" the hashtable of transactionStates now contains ");
              sb.append (_transactionStates.size());
              sb.append (" entries");
              SibTr.debug (this, TRACE, sb.toString());
            }
  
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, methodName);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.xa.XAResource#commit(javax.transaction.xa.Xid,
  boolean)