@Override
    public void groupModified(Group group, Map<String, ?> params) {
        // check the affiliation lists for the old group jid, replace with a new group jid
        if ("nameModified".equals(params.get("type"))) {
            GroupJID originalJID = (GroupJID) params.get("originalJID");
            GroupJID newJID = group.getJID();
            try {
                if (owners.contains(originalJID)) {
                    addOwner(newJID, getSelfRepresentation().getAffiliation());
                } else if (admins.contains(originalJID)) {
                    addAdmin(newJID, getSelfRepresentation().getAffiliation());
                } else if (outcasts.contains(originalJID)) {
                    addOutcast(newJID, null, null, getSelfRepresentation().getAffiliation(), getSelfRepresentation().getRole());
                } else if (members.containsKey(originalJID)) {
                    addMember(newJID, null, getSelfRepresentation().getAffiliation());
                }
                addNone(originalJID, getSelfRepresentation().getAffiliation());
            } catch (Exception ex) {
                Log.error("Failed to update group affiliation for " + newJID, ex);
            }
        }
    }
Saves the room configuration to the DB. After the room has been saved to the DB it will
become persistent.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java