}
protected AbstractValidationRule createValidationRule(Annotation annotation, Class clazz, String propertyName) {
if (Range.class.isInstance(annotation)) {
Range range = (Range) annotation;
return new RangeValidationRule(range.min(), range.max());
}
if (Min.class.isInstance(annotation)) {
Min min = (Min) annotation;
return new MinValidationRule(min.value());
}