code: public void closeConnection()
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "closeConnection");
          try
          {
              if(_XAResourceFactory != null && _XARes != null)
              {
                  ((XAResourceFactory)_XAResourceFactory).destroyXAResource(_XARes);
              }
          }
          catch(Throwable t)
          {
              FFDCFilter.processException(t, "com.ibm.ws.Transaction.JTA.XARminst.closeConnection", "250", this);
              Tr.audit(tc, "WTRN0038_ERR_DESTROYING_XARESOURCE", t);
          }
          if (tc.isEntryEnabled()) Tr.exit(tc, "closeConnection");
      }
docs: Close the XAConnection with the XAResource.