code: @Override
      public final void destroy()
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "destroy", new Object[] { _resource, _xid });
  
          if (!_completed)
          {
              // If we created an XAResource by reconnectRM we need to destroy it
              if (_recoveredRM != null)
              {
                  _recoveredRM.closeConnection();
                  _recoveredRM = null;
                  if (_recovery)
                  {
                      if (_recoveryData != null)
                          _recoveryData.decrementCount();
                  }
              }
              _completed = true;
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "destroy");
      }
docs: Destroy the JTAXAResourceImpl object from XAResourceManager.