code: public void forget(Xid xid)
                      throws XAException
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
              Tr.entry(this, tc, "forget", AdapterUtil.toString(xid)); 
          Tr.error(tc, "INVALID_TX_STATE", new Object[] { "OnePhaseXAResource.forget()", ivManagedConnection.getTransactionStateAsString() });
  
          XAException xae = new XAException(XAException.XA_RBPROTO);
          traceXAException(xae, currClass);
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
              Tr.exit(this, tc, "forget", xae);
          throw xae;
      }
docs: /*
  Tell the resource manager to forget about a heuristically completed transaction branch.
  
  @param Xid xid - A global transaction identifier
  
  @exception XAException - Possible causes for this exception are:
  1) it is illegal to call this method on a OnePhaseXaResource so this exception is always thrown