class AbstractExtractToAttributesProcessor extends AbstractProcessor {

    protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) {
        if (fieldName == null || fieldName.trim().isEmpty()) {
            return true;
        }
        if (match(excludeFields, fieldName)) {
            return true; // ignore
        }
        if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) {
            return true; // not include
        } // else //if no set or matched, will be added.
        return false;
    }

}