@Override
    public Group getGroup(String name) throws GroupNotFoundException
    {
        // Override the implementation in the superclass to prevent obtaining the group twice.
        for (final GroupProvider provider : groupProviders) {
            try {
                return provider.getGroup(name);
            } catch (GroupNotFoundException ex) {
                Log.debug( "Group {} not found in GroupProvider {}", name, provider.getClass().getName() );
            }
        }
        // If we get this far, no provider was able to load the group
        throw new GroupNotFoundException();
    }
Loads a group from the first provider that contains the group.

@param name the name of the group (cannot be null or empty).
@return The group (never null).
@throws GroupNotFoundException When none of the providers contains the group.
xmppserver/src/main/java/org/jivesoftware/openfire/group/HybridGroupProvider.java