public boolean loadConfig(MUCRoom room) {
        Map<String, String> roomConfig = getRoomConfig(room.getName());
        if (roomConfig != null) {
            room.setNaturalLanguageName(roomConfig.get("muc#roomconfig_roomname"));
            room.setDescription(roomConfig.get("muc#roomconfig_roomdesc"));
            room.setCanOccupantsChangeSubject("1".equals(roomConfig.get("muc#roomconfig_changesubject")));
            room.setMaxUsers(Integer.parseInt(roomConfig.get("muc#roomconfig_maxusers")));
            room.setPublicRoom("1".equals(roomConfig.get("muc#roomconfig_publicroom")));
            room.setCanOccupantsInvite("1".equals(roomConfig.get("muc#roomconfig_allowinvites")));
            room.setCanAnyoneDiscoverJID("anyone".equals(roomConfig.get("muc#roomconfig_whois")));
            room.setCanSendPrivateMessage( roomConfig.get("muc#roomconfig_allowpm") );
            room.setChangeNickname("1".equals(roomConfig.get("x-muc#roomconfig_canchangenick")));
            room.setRegistrationEnabled("1".equals(roomConfig.get("x-muc#roomconfig_registration")));
            room.setPersistent("1".equals(roomConfig.get("muc#roomconfig_persistentroom")));
            
            final String property = roomConfig.get("muc#roomconfig_roomowners");
            if (property != null) {
                String[] jids = property.split(",");
                for (String jid : jids) {
                    if (jid != null && !jid.trim().isEmpty()) {
                        room.addFirstOwner(new JID(jid.trim().toLowerCase()).asBareJID());
                    }
                }
            }
            
            try {
                room.unlock(room.getSelfRepresentation().getAffiliation());
            } catch (ForbiddenException e) {
                return false;
            }
        }
        return roomConfig != null;
    }
Loads a delegate provided room configuration for the room specified.

@param room the room to load the configuration for.
@return true if the room configuration was received from the delegate and applied to the room.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCEventDelegate.java