@Override
public void modify(final FormComponent<?> component, final ComponentTag tag, final NotNull annotation) {
ValidatorBag bag = new ValidatorBag(getLabelString(component));
final ParsleyValidationBehavior validationBehavior =
new ParsleyValidationBehavior();
validationBehavior.error("required", getLocalizedMessage(component, annotation.message(), bag));
validationBehavior.require(true);
validationBehavior.onComponentTag(component, tag);
}
}