cfg.setMinaServiceRegistry( DEFAULT_MINA_REGISTRY );
    protected void startService() throws Exception    {        // Build the properties from bean attributes        Hashtable env = createContextEnv();        if ( embeddedServerEnabled )        {            if ( LOG.isInfoEnabled() )            {                LOG.info( "Starting Embedded Directory Server..." );            }            // Create the baseline configuration            MutableServerStartupConfiguration cfg = new MutableServerStartupConfiguration();            /*             * *************** Update the baseline configuration             * *****************             */            // Access Control            cfg.setAccessControlEnabled( this.accessControlEnabled );            cfg.setAllowAnonymousAccess( this.anonymousAccess );            // Wire protocols            cfg.setMinaServiceRegistry( DEFAULT_MINA_REGISTRY );            cfg.setEnableNetworking( this.ldapNetworkingSupport );            cfg.setLdapPort( this.ldapPort );            cfg.setLdapsPort( this.ldapsPort );            cfg.setEnableNtp( enableNtp );            cfg.setEnableKerberos( enableKerberos );            cfg.setEnableChangePassword( enableChangePassword );            // Work folder            cfg.setWorkingDirectory( new File( this.wkDir ) );            // LDIF import            cfg.setLdifDirectory( new File( this.ldifDir ) );            cfg.setLdifFilters( addCustomLdifFilters() );            // Addditional bootstrap schema            cfg.setBootstrapSchemas( addCustomBootstrapSchema( cfg.getBootstrapSchemas() ) );            // Single custom partition            if ( ( null != this.customRootPartitionName ) && ( this.customRootPartitionName.length() > 0 ) )            {                if ( LOG.isDebugEnabled() )                {                    LOG.debug( "Adding custom root partition name: " + this.customRootPartitionName );                }                Set pcfgs = addCustomPartition();                cfg.setContextPartitionConfigurations( pcfgs );            }            // Put the configuration instruction to the environment variable.            env.putAll( cfg.toJndiEnvironment() );            new InitialDirContext( env );        }        else        {            if ( LOG.isWarnEnabled() )            {                LOG                    .warn( "No Embedded directory server requested.  All directory access will be via remote LDAP interface." );            }        }        if ( LOG.isDebugEnabled() )        {            LOG.debug( "Directory Environment:" );            Enumeration en = env.keys();            while ( en.hasMoreElements() )            {                Object key = en.nextElement();                LOG.debug( "    " + key + ":" + env.get( key ) );            }        }    }