throw new ConfigurationException( msg ); }  String url = ( String ) env.get( Context.PROVIDER_URL );  if ( url == null ) { String msg = "Expected value for property " + Context.PROVIDER_URL; msg += " but it was set to null in env!";  throw new ConfigurationException( msg ); }  dn = new LdapName( url );
if ( dn.size() == 0 ) return;
    protected ServerContext( DirectoryService service, Hashtable env ) throws NamingException    {        this.service = service;                // set references to cloned env and the proxy        this.nexusProxy = new DirectoryPartitionNexusProxy( this, service );                DirectoryServiceConfiguration cfg = service.getConfiguration();                this.env = ( Hashtable ) cfg.getEnvironment().clone();        this.env.putAll( env );        /* --------------------------------------------------------------------         * check for the provider URL property and make sure it exists         * as a valid value or else we need to throw a configuration error         * ------------------------------------------------------------------ */        if ( ! env.containsKey( Context.PROVIDER_URL ) )        {            String msg = "Expected property " + Context.PROVIDER_URL;            msg += " but could not find it in env!";            throw new ConfigurationException( msg );        }        String url = ( String ) env.get( Context.PROVIDER_URL );        if ( url == null )        {            String msg = "Expected value for property " + Context.PROVIDER_URL;            msg += " but it was set to null in env!";            throw new ConfigurationException( msg );        }        dn = new LdapName( url );        if ( ! nexusProxy.hasEntry( dn ) )        {            throw new NameNotFoundException( dn + " does not exist" );        }    }