code: public static Object lookup(String target) throws NamingException
      {
          if (theRootContext == null) {
              theRootContext = new InitialContext();
          }
  
          return theRootContext.lookup(localHomePrefixString + target);
      }
docs: Look up a local home using its global home name in JNDI.
  The semantics are identical to javax.naming.Context.lookup(). <p>
  
  @param target The global JNDI name assigned to the bean.
  @return The local home for this bean.