docs: public void end(Xid xid, int flags) throws XAException {
      if (flags != TMSUCCESS && flags != TMSUSPEND && flags != TMFAIL) {
        throw new XAException(XAException.XAER_INVAL);
      }
  
      execute("XA END " + xidToString(xid) + " " + flagsToString(flags));
    }