code: @Override
      public void forget(Xid xid) throws XAException {
  
          final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
  
          if (isTracingEnabled && tc.isEntryEnabled())
              Tr.entry(this, tc, "forget");
  
          try {
              xaResource.forget(xid);
          } catch (XAException e) {
              processXAException(e);
              com.ibm.ws.ffdc.FFDCFilter.processException(
                                                          e,
                                                          "com.ibm.ejs.j2c.XATransactionWrapper.forget",
                                                          "561",
                                                          this);
              if (!mcWrapper.isStale()) {
                  Tr.error(tc, "XA_RESOURCE_ADAPTER_OPERATION_ID_EXCP_J2CA0027", "forget", xid, e, mcWrapper.gConfigProps.cfName);
              }
              if (isTracingEnabled && tc.isEntryEnabled())
                  Tr.exit(this, tc, "forget", e);
              throw e;
          } catch (Exception e) {
              com.ibm.ws.ffdc.FFDCFilter.processException(
                                                          e,
                                                          "com.ibm.ejs.j2c.XATransactionWrapper.forget",
                                                          "567",
                                                          this);
              if (!mcWrapper.shouldBeDestroyed()) {
                  mcWrapper.markTransactionError();
                  Tr.error(tc, "XA_RESOURCE_ADAPTER_OPERATION_ID_EXCP_J2CA0027", "forget", xid, e, mcWrapper.gConfigProps.cfName);
              }
              XAException xae = new XAException(XAException.XAER_RMFAIL);
              xae.initCause(e);
              if (isTracingEnabled && tc.isEntryEnabled())
                  Tr.exit(this, tc, "forget", e);
              throw xae;
          }
  
          if (isTracingEnabled && tc.isEntryEnabled())
              Tr.exit(this, tc, "forget");
      }
docs: Tell the resource manager to forget about a heuristically completed transaction branch.
  
  @param xid A global transaction identifier
  
  @throws XAException An error has occurred. Possible exception values are XAER_RMERR, XAER_RMFAIL.