base/common/src/main/com/thesett/common/jndi/SimpleContext.java
public void bind(String name, Object obj) throws NamingException
    {
        if ("".equals(name))
        {
            throw new InvalidNameException("Cannot bind empty name");
        }

        if (bindings.get(name) != null)
        {
            throw new NameAlreadyBoundException("Use rebind to override");
        }

        bindings.put(name, obj);
    }
public void bind(String name, Object obj) throws NamingException
    {
        if ("".equals(name))
        {
            throw new InvalidNameException("Cannot bind empty name");
        }

        if (bindings.get(name) != null)
        {
            throw new NameAlreadyBoundException("Use rebind to override");
        }

        bindings.put(name, obj);
    }
public void bind ( String name , Object obj ) throws NamingException { if ( "" . equals ( name ) ) { throw new InvalidNameException ( "Cannot bind empty name" ) ; } if ( bindings . get ( name ) != null ) { throw new NameAlreadyBoundException ( "Use rebind to override" ) ; } bindings . put ( name , obj ) ; }
Binds a name to an object. All intermediate contexts and the target context (that named by all but terminal
atomic component of the name) must already exist.

@param  name The name to bind; may not be empty.
@param  obj  The object to bind; possibly null.

@throws NamingException If the name already exists.
Binds a name to an object . All intermediate contexts and the target context ( that named by all but terminal atomic component of the name ) must already exist .