code: @Override
      public boolean isOnlyAgent()
      {
          final boolean result = (_resourceObjects.size() == 1 &&
                                  _resourceObjects.get(0) instanceof ResourceSupportsOnePhaseCommit &&
                          (_asyncResourceObjects == null || _asyncResourceObjects.size() == 0));
  
          if (TraceComponent.isAnyTracingEnabled() && 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.