@Override
	public void rebind(Name name, Object obj) throws NamingException
    {
        if (name.isEmpty())
            throw new InvalidNameException("Cannot bind empty name");

        // Extract components that belong to this namespace
        String nm = name.toString();

        // Add object to internal hash table
        bindings.put(nm, obj);
    }
@ Override public void rebind ( Name name , Object obj ) throws NamingException { if ( name . isEmpty ( ) ) throw new InvalidNameException ( "Cannot bind empty name" ) ; String nm = name . toString ( ) ; bindings . put ( nm , obj ) ; }
/*
(non-Javadoc)
@see javax.naming.Context#rebind(javax.naming.Name, java.lang.Object)