serverAddress = new InetSocketAddress( PropertiesUtils.get( initialEnv, EnvKeys.LDAP_PORT, LDAP_PORT ) );
if ( registry != null ) { initialEnv.put( EnvKeys.PASSTHRU, "Handoff Succeeded!" ); } }   Service service = new Service( "ldap", TransportType.SOCKET, PropertiesUtils.get( initialEnv, EnvKeys.LDAP_PORT, LDAP_PORT ) );
    private void startUpWireProtocol() throws NamingException    {        // TODO MINA registry package is not implemented yet,        // so we don't use PASSTHRU property yet.        // if ( initialEnv.containsKey( EnvKeys.PASSTHRU ) )        // {        //     fe = ( DefaultFrontend ) initialEnv.get( EnvKeys.PASSTHRU );        //         //     if ( fe != null )        //     {        //         initialEnv.put( EnvKeys.PASSTHRU, "Handoff Succeeded!" );        //     }        // }        serverAddress = new InetSocketAddress( PropertiesUtils.get( initialEnv, EnvKeys.LDAP_PORT, LDAP_PORT ) );        try        {            acceptor = new IoProtocolAcceptor( new SocketAcceptor() );            acceptor.bind( serverAddress, new LdapProtocolProvider( ( Hashtable ) initialEnv.clone() ) );        }        catch ( IOException e )        {            e.printStackTrace();            String msg = "Could not recognize the host!";            LdapConfigurationException e2 = new LdapConfigurationException( msg );            e2.setRootCause( e );        }    }