code: private HomeRecord resolveEJBLink(J2EEName source, String link) throws RuntimeWarning {
          boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "resolveEJBLink: " + link);
  
          String module = source.getModule();
          String component = source.getComponent();
          HomeRecord result;
  
          // F7434950.CodRev - Use resolveEJBLink
          try {
              result = EJSContainer.homeOfHomes.resolveEJBLink(source.getApplication(), module, link);
          } catch (EJBNotFoundException ex) {
              Tr.error(tc, "SINGLETON_DEPENDS_ON_NONEXISTENT_BEAN_CNTR0198E", new Object[] { component, module, link });
  
              if (isTraceOn && tc.isEntryEnabled())
                  Tr.exit(tc, "resolveEJBLink");
              throw new RuntimeWarning("CNTR0198E: The " + component + " singleton session bean in the " + module + " module depends on "
                      + link + ", which does not exist.", ex);
          } catch (AmbiguousEJBReferenceException ex) {
              Tr.error(tc, "SINGLETON_DEPENDS_ON_AMBIGUOUS_NAME_CNTR0199E", new Object[] { component, module, link });
  
              if (isTraceOn && tc.isEntryEnabled())
                  Tr.exit(tc, "resolveEJBLink");
              throw new RuntimeWarning("CNTR0199E: The " + component + " singleton session bean in the " + module + " module depends on "
                      + link + ", which does not uniquely specify an enterprise bean.", ex);
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "resolveEJBLink: " + result);
          return result;
      }
docs: Resolves a dependency reference link to another EJB.
  
  @param source
  the dependent bean
  @param link
  the dependency bean using EJB link syntax
  @return the resulting home record
  @throws RuntimeWarning
  if the link cannot be resolved