code: public boolean hasWork()
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "hasWork");
          //
          // Defect 116448. Need to change this check so
          // that if cleanupResources is non-null but empty
          // we return that it has no work.
          //
          boolean result = false;
  
          if ((_cleanupResources != null) && (!_cleanupResources.isEmpty()))
          {
              result = true;
          }
  
          if (_enlistedResources != null)
          {
              result = true;
          }
  
          if (tc.isEntryEnabled()) Tr.exit(tc, "hasWork", result);
          return result;
      }
docs: /*
  Returns whether or not there are any outstanding LocalTransactions
  being coordinated by this coordinator.
  
  @return <UL>
  <LI>true - if there are LocalTransactions being coordinated</LI>
  <LI>false - if there are no outstanding LocalTransactions</LI>
  </UL>
  @since 1.0