Creates and binds a new subcontext.
The new subcontext might not be an immediate subcontext of this one. If it is not an immediate subcontext, all the intervening subcontexts specified in name
must already exist. If the attributes parameter is non-null the specified attributes are added to the new subcontext.
Possible exceptions are NameAlreadyBoundException
and InvalidAttributesException
.
This method throws any NamingException
that occurs.
@param name the name bound to the new subcontext
@param attributes the attributes of the new subcontxt, can be null
@return the new subcontext
@throws NamingException If any occurs.