if ( (this.equals( other ) ) ) return true; if ( !(other instanceof Attribute) ) return false; Attribute castOther = (Attribute) other;
if (this == other) { return true; } if (!(other instanceof Attribute)) { return false; } Attribute otherAttr = (Attribute) other;
  public boolean equals(Object other) {    if ( (this.equals( other ) ) ) return true;    if ( !(other instanceof Attribute) ) return false;    Attribute castOther = (Attribute) other;    return new EqualsBuilder()           .append(this.getValue(), castOther.getValue())           .append(this.getGroup(), castOther.getGroup())           .append(this.getField(), castOther.getField())           .isEquals();  }