public GroupMembership getGroupMembershipByUsernameAndGroupID(int groupMembershipID, String username){
        for(GroupMembership groupMembership : groupMemberships){
            if(groupMembershipID == groupMembership.getGroupID() && username.equals(groupMembership.getUsername())) return groupMembership;
        }

        return null;
    }