@Override
    public void setName(String oldName, String newName) throws GroupAlreadyExistsException, GroupNameInvalidException, GroupNotFoundException
    {
        if (!data.containsKey(oldName)) {
            throw new GroupNotFoundException();
        }
        if (data.containsKey(newName)) {
            throw new GroupAlreadyExistsException();
        }
        data.put(newName, data.remove(oldName));
    }
A very basic implementation of a GroupProvider, that retains data in-memory.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/openfire/group/TestGroupProvider.java