code: protected void addRes(JTAResource resource) {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "addRes", new Object[] { this, resource });
  
          // Add the reference to the list (which was created when this object was
          // created), with the "registered" status.
          resource.setResourceStatus(StatefulResource.REGISTERED);
          _resourceObjects.add(resource);
  
          if (tc.isEventEnabled())
              Tr.event(tc, "(SPI) SERVER registered with Transaction. TX: " + _transaction.getLocalTID() + ", Resource: " + resource);
          if (tc.isEntryEnabled())
              Tr.exit(tc, "addRes");
      }
docs: Adds a reference to a Resource object to the list in the registered state.
  
  This is intended to be used for registering Remote objects which do not need any start association.
  
  @param resource
  
  @return