}
if (MinLength.class.isInstance(annotation)) {
MinLength minLength = (MinLength)annotation;
validateMin(minLength.value(), clazz, propertyName);
return new MinLengthValidationRule(minLength.value());
}
if (Length.class.isInstance(annotation)) {
Length length = (Length)annotation;
validateMinMax(length.min(), length.max(), clazz, propertyName);