code: private Reference createIndirectJndiLookup(ResourceInjectionBinding binding,
                                                 String boundToJndiName)
                      throws InjectionException
      {
          // -----------------------------------------------------------------------
          // Bind an indirect JNDI reference using the reference jndi name.
          // When a lookup is performed on the reference, an indirect lookup will
          // then be performed on the jndi name of the actual resource.
          // -----------------------------------------------------------------------
          String jndiName = binding.getJndiName();
          String classType = binding.getInjectionClassTypeName(); // d741827
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "Binding " + binding.ivXMLType + " " + jndiName +
                           " (" + classType + ") to resource " + boundToJndiName);
  
          binding.ivBindingName = boundToJndiName; // F88163
          if (binding.ivResRefConfig != null)
          {
              binding.ivResRefConfig.setJNDIName(boundToJndiName); // F88163
          }
  
          return ivIndirectLookupFactory.createIndirectJndiLookup(jndiName, boundToJndiName, classType);
      }
docs: F743-21028.4