@Nonnull
    @Override
    public Iterator<Group> iterator() {
        return new GroupIterator();
    }
Constructs a new GroupCollection.
@param elements the initial groups in the collection
xmppserver/src/main/java/org/jivesoftware/openfire/group/GroupCollection.java