if ((((Identity) identity).getName() == this.name) && (((Identity) identity).getScope() == this.scope))
if ((((Identity) identity).getName().equals(this.name)) && (((Identity) identity).getScope().equals(this.scope)))
  public final boolean equals(Object identity)  {    if (identity instanceof Identity)      {	if (identity == this)	  return true;	if ((((Identity) identity).getName() == this.name) &&	    (((Identity) identity).getScope() == this.scope))	  return true;	return identityEquals((Identity) identity);      }    return false;  }