class AbstractExtractToAttributesProcessor extends AbstractProcessor {

    protected boolean match(final List<Pattern> matchPatterns, String fieldName) {
        boolean match = false;
        if (fieldName != null && matchPatterns != null && !matchPatterns.isEmpty()) {
            for (Pattern p : matchPatterns) {
                final Matcher matcher = p.matcher(fieldName);
                if (matcher.matches()) {
                    match = true;
                    break;
                }
            }

        }
        return match;
    }

}