base/common/src/main/com/thesett/common/jndi/SimpleContext.java
public Object lookup(String name) throws NamingException
    {
        if ("".equals(name))
        {
            // Asking to look up this context itself.  Create and return
            // a new instance with its own independent environment.
            return (new SimpleContext(myEnv));
        }

        Object answer = bindings.get(name);

        if (answer == null)
        {
            throw new NameNotFoundException(name + " not found");
        }

        return answer;
    }
public Object lookup(String name) throws NamingException
    {
        if ("".equals(name))
        {
            // Asking to look up this context itself.  Create and return
            // a new instance with its own independent environment.
            return (new SimpleContext(myEnv));
        }

        Object answer = bindings.get(name);

        if (answer == null)
        {
            throw new NameNotFoundException(name + " not found");
        }

        return answer;
    }
public Object lookup ( String name ) throws NamingException { if ( "" . equals ( name ) ) { // Asking to look up this context itself.  Create and return // a new instance with its own independent environment. return ( new SimpleContext ( myEnv ) ) ; } Object answer = bindings . get ( name ) ; if ( answer == null ) { throw new NameNotFoundException ( name + " not found" ) ; } return answer ; }
Retrieves the named object. If name is empty, returns a new instance of this context (which represents the same
naming context as this context, but its environment may be modified independently and it may be accessed
concurrently).

@param  name The name to look up.

@return The object associated with the name, if there is one.

@throws NamingException If the name cannot be found in the context.
Retrieves the named object . If name is empty returns a new instance of this context ( which represents the same naming context as this context but its environment may be modified independently and it may be accessed concurrently ) .