if (this == o) return true;
if (o == null) return false;
if (o instanceof ResourcePrincipal) {
ResourcePrincipal other = (ResourcePrincipal) o;
// start IASRI 4676199
// handle the default principal case
if (isDefault()) {
return other.isDefault();
} else if (other.isDefault()) {
return false;
}
// end IASRI 4676199
return ((isEqual(getName(), other.getName())) &&
(isEqual(this.password, other.password)));
}
return false;