UserConfig userConfig =
AdminConfigManagerUtil.getUserConfig(user.getCompanyId());
if (userConfig.hasReservedUserEmailAddress(emailAddress)) {
throw new ReservedUserEmailAddressException();
}
}
if (Validator.isNotNull(smsId) && !Validator.isEmailAddress(smsId)) {
throw new UserSmsException();