UserConfig userConfig =
AdminConfigManagerUtil.getUserConfig(companyId);
if (userConfig.hasReservedUserId(userId)) {
throw new ReservedUserIdException();
}
}
if (!Validator.isEmailAddress(emailAddress)) {
throw new UserEmailAddressException("Please enter a valid Email Address");