docs: private Reference resolveFromBinding(ResourceInjectionBinding resourceBinding, String refJndiName) throws InjectionException {
          String boundToJndiName = null;
          Reference ref = null;
  
          // --------------------------------------------------------------------
          // Bind indirect jndi lookups to Resource-Refs
          //
          // Check for a binding in the ResourceRef Binding map, and if
          // found, run the binding name through the variable map service
          // (server only), create a ResourceRef Lookup binding, and finally
          // add the reference to the ResRefList.
          // --------------------------------------------------------------------
          if (ivResRefBindings != null) {
              boundToJndiName = ivResRefBindings.get(refJndiName);
              if (boundToJndiName != null) {
                  // This call uses the variable map service, creates the
                  // reference and adds to the ResRefList.
                  ref = createResRefJndiLookup(resourceBinding,
                                               refJndiName,
                                               boundToJndiName);
              }
          }
  
          // --------------------------------------------------------------------
          // Bind indirect jndi lookups to Resource-Env-Refs
          //
          // If a binding was not found yet, try the Resource Environment Ref
          // Bindings, and if found, bind an Indirect Jndi Lookup.
          // --------------------------------------------------------------------
          if (ref == null && ivResEnvRefBindings != null) {
              boundToJndiName = ivResEnvRefBindings.get(refJndiName);
              if (boundToJndiName != null) {
                  ref = createIndirectJndiLookup(resourceBinding,
                                                 boundToJndiName);
              }
          }
  
          // --------------------------------------------------------------------
          // Bind indirect jndi lookups to Message-Destination-Refs     LI2281-25
          //
          // If a binding was not found yet, try the Message Destination Ref
          // Bindings, and if found, bind an Indirect Jndi Lookup.
          // --------------------------------------------------------------------
          if (ref == null && ivMsgDestRefBindings != null) {
              boundToJndiName = ivMsgDestRefBindings.get(refJndiName);
              if (boundToJndiName != null) {
                  ref = createIndirectJndiLookup(resourceBinding,
                                                 boundToJndiName);
              }
          }
          return ref;
      }