code: public void close(Xid xid) throws XAException {
      synchronized (cpoXaStateMap) {
        CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid);
  
        if (cpoXaState == null)
          throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID");
  
        // close the resource
        closeResource(cpoXaState.getResource());
  
        // unassociate
        cpoXaStateMap.getXaResourceMap().remove(cpoXaState.getAssignedResourceManager());
  
        // remove the xid reference
        cpoXaStateMap.getXidStateMap().remove(xid);
      }
    }
docs: Closes the resource for the specified xid
  
  @param xid of the global transaction
  @throws XAException