* @return boolean returns true if duplicate email was found, false otherwise.
*/
private boolean isDuplicateEmail(BaseUser user) {
String email = user.getEmailAddress();
if (email != null && !StringUtil.isEmpty(email)){
BaseUser userCheck = userDAO.loadByEmailAddress(email);
if (userCheck != null && user.isNew())
return true;
if (userCheck != null && !userCheck.getId().equals(user.getId()))
return true;
}
return false;
}