private static boolean canBeIncludedInResult(MUCRoomSearchInfo room)
    {
        // Check if locked rooms may be discovered
        final boolean discoverLocked = MUCPersistenceManager.getBooleanProperty(room.getServiceName(), "discover.locked", true);

        if (!discoverLocked && room.isLocked())
        {
            return false;
        }
        return room.isPublicRoom();
    }
Checks if the room may be included in search results. This is almost
identical to {@link MultiUserChatServiceImpl#canDiscoverRoom(org.jivesoftware.openfire.muc.MUCRoom, org.xmpp.packet.JID)},
but that method is private and cannot be re-used here.

@param room
           The room to check
@return ''true'' if the room may be included in search results, ''false''
        otherwise.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/IQMUCSearchHandler.java