lengthClientValidator.setLengthValidator(lengthValidator);
return lengthClientValidator;
} else if (annotationClass.equals(Pattern.class)) {
Pattern pattern = (Pattern) annotation;
RegexValidator regexValidator = new RegexValidator();
regexValidator.setPattern(pattern.regex());
return regexValidator;
} else if (annotationClass.equals(Range.class)) {
Range range = (Range) annotation;
LongRangeValidator longRangeValidator = new LongRangeValidator();
longRangeValidator.setMaximum(range.max());