DirectoryService directoryService = DefaultDirectoryServiceFactory.DEFAULT.getDirectoryService();
directoryService.startup();
ldapServer = new LdapServer();
ldapServer.setDirectoryService( directoryService );
TcpTransport tcpTransportSsl = new TcpTransport( 10636 );
tcpTransportSsl.enableSSL( true );
ldapServer.setTransports( new TcpTransport( 10389 ), tcpTransportSsl );
apacheDS = new ApacheDS( ldapServer );
}
if ( layout != null )