code: @Override
      protected void logResources() throws SystemException
      {
          final boolean traceOn = TraceComponent.isAnyTracingEnabled();
  
          if (traceOn && tc.isEntryEnabled())
              Tr.entry(tc, "logResources", _resourcesLogged);
  
          if (!_resourcesLogged)
          {
              if (_asyncResourceObjects != null)
              {
                  for (JTAAsyncResourceBase resource : _asyncResourceObjects)
                  {
                      if (resource.getResourceStatus() == StatefulResource.PREPARED)
                      {
                          recordLog(resource);
                      }
                  }
              }
  
              super.logResources(); // this will set _resourcesLogged to true
          }
  
          if (traceOn && tc.isEntryEnabled())
              Tr.exit(tc, "logResources");
      }
docs: Log any prepared resources