final RegEx annotation = Annotations.getAnnotation(processMethodContext.getMethod(), RegEx.class);
addRegexFacetAndCorrespondingTitleFacet(processMethodContext.getFacetHolder(), annotation);
}
private void addRegexFacetAndCorrespondingTitleFacet(final FacetHolder holder, final RegEx annotation) {
final RegExFacet regexFacet = createRegexFacet(annotation, holder);
if (regexFacet == null) {
return;
}
FacetUtil.addFacet(regexFacet);