public void setDefaultEmailAddressValue(final String email, final boolean valid, final boolean visibleToPublic) {
if (!StringUtils.isEmpty(email)) {
final EmailAddress emailAddress;
if (hasDefaultEmailAddress()) {
emailAddress = getDefaultEmailAddress();
emailAddress.edit(email);
} else {
emailAddress = EmailAddress.createEmailAddress(this, email, PartyContactType.PERSONAL, true);
}
emailAddress.setVisibleToPublic(visibleToPublic);
if (valid) {