if (groupObject != null) { if (groupMemberHash.add(groupObject)) { groupObject.addMemberObject(this); return groupObject; } else { Log.error("Can't add to group.  already a member of the group" + groupObject.getName());
if (groupMemberHash.add(groupObject)) { groupObject.addMemberObject(this); return groupObject; } else { Log.errorln("Can't add to group.  already a member of the group" + groupObject.getName());
  public Group addToGroup(Group groupObject) {    if (groupObject != null) {      if (groupMemberHash.add(groupObject)) {  //add in successful        groupObject.addMemberObject(this);        return groupObject; // bad, should return based on success of adding      } else {        Log.error("Can't add to group.  already a member of the group" +                           groupObject.getName());        return null;      }    } else {      Log.error("Error: the group object to add to is null");      return null;    }  }