public void modify(final FormComponent<?> component, final ComponentTag tag, final Pattern annotation) {
PatternBag bag = new PatternBag(getLabelString(component), annotation.regexp());
final ParsleyPatternValidationBehavior patternValidator =
new ParsleyPatternValidationBehavior(annotation.regexp(),
getLocalizedMessage(component, annotation.message(), bag));
patternValidator.onComponentTag(component, tag);
}
}