@Override
  public Object lookup(String name) throws NamingException {
    checkIsDestroyed();
    try {
      return lookup(nameParser.parse(name));
    } catch (NameNotFoundException e) {
      LogWriter writer = TransactionUtils.getLogWriter();
      if (writer.infoEnabled()) {
        writer.info(String.format("ContextImpl::lookup::Error while looking up %s", name),
            e);
      }
      throw new NameNotFoundException(
          String.format("Name %s not found", name));
    }
  }
Looks up the object in this context. If the object is not found and the remote context was
provided, calls the remote context to lookup the object.

@param name object to search
@return object reference bound to name name.
@throws NamingException if naming error occurs.
geode-core/src/main/java/org/apache/geode/internal/jndi/ContextImpl.java