public void initialize(final XMPPServer server) {
        initializeSettings();

        routingTable = server.getRoutingTable();
        // Configure the handler of iq:register packets
        registerHandler = new IQMUCRegisterHandler(this);
        // Configure the handlers of search requests
        searchHandler = new IQMUCSearchHandler(this);
        extendedChannelSearchHandler = new IQExtendedChannelSearchHandler(this);
        muclumbusSearchHandler = new IQMuclumbusSearchHandler(this);
        mucVCardHandler = new IQMUCvCardHandler(this);
        MUCEventDispatcher.addListener(occupantManager);

        // Ensure that cluster events are handled in RoutingTableImpl first (due to higher listener sequence here)
        ClusterManager.addListener(this, 0);
    }
Sets the flag that indicates if the service should provide information about locked rooms
when handling service discovery requests.
Note: Setting this flag in false is not compliant with the spec. A user may try to join a
locked room thinking that the room doesn't exist because the user didn't discover it before.

@param allowToDiscoverLockedRooms if the service should provide information about locked
       rooms.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java