@Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object instanceof Group) {
            return name.equals(((Group)object).getName());
        }
        else {
            return false;
        }
    }
Returns true if the provided username belongs to a user of the group.

@param username the username to check.
@return true if the provided username belongs to a user of the group.
xmppserver/src/main/java/org/jivesoftware/openfire/group/Group.java