*
* @see org.springframework.validation.Validator#validate(java.lang.Object,
* org.springframework.validation.Errors)
*/
public void validate(Object object, Errors errors) {
User user = (User) object;
// ValidationUtils.rejectIfEmptyOrWhitespace(errors,
// "firstName","required.firstName","First Name is required");
// ValidationUtils.rejectIfEmptyOrWhitespace(errors,
// "lastName","required.lastName","Last Name is required");
validateEmail(user.getEmailAddressString(), errors);
// ValidationUtils.rejectIfEmptyOrWhitespace(errors,
// "userName","required.userName", "User Name is required");
// ValidationUtils.rejectIfEmptyOrWhitespace(errors,
// "password","required.password","Password is required");
}