RootCfg root =
ServerManagementContext.getInstance().getRootConfiguration();
AdministrationConnectorCfg administrationConnectorCfg =
root.getAdministrationConnector();
AdministrationConnector ac = new AdministrationConnector();
ac.initializeAdministrationConnector(administrationConnectorCfg);
// Put this connection handler in the hash so that we will be
// able to find it if it is altered.
LDAPConnectionHandler connectionHandler = ac.getConnectionHandler();
connectionHandlers.put(administrationConnectorCfg.dn(), connectionHandler);
// Register the connection handler with the Directory Server.
DirectoryServer.registerConnectionHandler(connectionHandler);
}