return NewUser.class.isAssignableFrom(aClass);
}
public void validate(Object obj, Errors errors) {
logger.debug("Validator called");
NewUser newUser = (NewUser) obj;
validateUsername(errors, newUser);
validatePassword(errors, newUser);
validateConfirmPassword(errors, newUser);
validateEmail(errors, newUser.getEmail());
writeResultToLog(errors);
}