code: protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "setXaResourceFactory, ref " + ref);
  
          _xaResourceFactoryReady = true;
  
          if (ableToStartRecoveryNow()) {
              // Can start recovery now
              try {
                  startRecovery();
              } catch (Exception e) {
                  FFDCFilter.processException(e, "com.ibm.tx.jta.util.impl.TxTMHelper.setXaResourceFactory", "148", this);
              }
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "setXaResourceFactory");
      }
docs: Called by DS to inject reference to XaResource Factory
  
  @param ref