code: public boolean isOnlyAgent() {
          final boolean result = (_resourceObjects.size() == 1 &&
                          _resourceObjects.get(0) instanceof ResourceSupportsOnePhaseCommit);
  
          if (tc.isDebugEnabled())
              Tr.debug(tc, "isOnlyAgent", result);
          return result;
      }
docs: Informs the caller if a single 1PC CAPABLE resource is enlisted in this unit of work.