Service service = new Service( "LDAP", TransportType.SOCKET, new InetSocketAddress( port ) ); startLDAP0( cfg, env, service, new DefaultIoFilterChainBuilder() );
startLDAP0( cfg, env, port, new DefaultIoFilterChainBuilder() );
    private void startLDAP( ServerStartupConfiguration cfg, Hashtable env ) throws NamingException    {        // Skip if disabled        int port = cfg.getLdapPort();        if ( port < 0 )        {            return;        }        Service service = new Service( "LDAP", TransportType.SOCKET, new InetSocketAddress( port ) );        startLDAP0( cfg, env, service, new DefaultIoFilterChainBuilder() );    }