* @return client validator
*/
public ClientValidator getValidator(Annotation annotation) {
Class<? extends Annotation> annotationClass = annotation.annotationType();
if (annotationClass.equals(NotNull.class)) {
return new RequiredClientValidator();
} else if (annotationClass.equals(NotEmpty.class)) {
return new RequiredClientValidator();
} else if (annotationClass.equals(Email.class)) {
return new EMailValidator();
} else if (annotationClass.equals(Length.class)) {
Length length = (Length) annotation;
LengthValidator lengthValidator = new LengthValidator();