public abstract Context getInitialContext (Hashtable<?, ?> environment) throws NamingException

Creates an Initial Context for beginning name resolution. Special requirements of this context are supplied using environment.

The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.

environment    The possibly null environment specifying information to be used in the creation of the initial context.

Returns:  A non-null initial context object that implements the Context interface.

NamingException    If cannot create an initial context.