MaximumLengthValidator maximumLengthValidator = (MaximumLengthValidator) validator;
buffer.append(messageBuilder.maximumMessage(component, maximumLengthValidator));
}
else if (LengthBetweenValidator.class.isAssignableFrom(validator.getClass())) {
LengthBetweenValidator lengthBetweenValidator = (LengthBetweenValidator) validator;
buffer.append(messageBuilder.lengthBetweenMessage(component, lengthBetweenValidator));
}
else if (PatternValidator.class.isAssignableFrom(validator.getClass())) {
PatternValidator patternValidator = (PatternValidator) validator;