@Override
    public void setName(String oldName, String newName) throws GroupAlreadyExistsException, GroupNameInvalidException, GroupNotFoundException
    {
        getGroupProvider(oldName).setName(oldName, newName);
    }
Sets the name of a group to a new name in the provider that is used for this group.

@param oldName the current name of the group.
@param newName the desired new name of the group.
@throws GroupAlreadyExistsException if a group with the same name already exists.
@throws UnsupportedOperationException if the provider does not support the operation.
@throws GroupNotFoundException if the provided old name does not refer to an existing group.
@throws GroupNameInvalidException if the provided new name is an unacceptable value.
xmppserver/src/main/java/org/jivesoftware/openfire/group/GroupMultiProvider.java