public void updateUser(MemberVO user) throws DuplicateEmailException {
//MemberVO userProfile = memberDao.getMemberProfileByUserName(user.getMemberUserName());
if (isMemberAvailableByEmail(user.getEmail(), user.getMemberId())){
throw new DuplicateEmailException("error.duplicate.email"); //Email Already exists
}
// // email address is changing for the same user
// if (!userProfile.getEmail().equalsIgnoreCase(user.getEmail()) && !userProfile.getMemberId().equalsIgnoreCase(user.getMemberId())){
// throw new DuplicateEmailException("error.duplicate.email"); //Email Already exists