public static MetadataFilter load(Element root, boolean allowMissing) throws TikaConfigException,
            IOException {
        try {
            return buildComposite("metadataFilters", CompositeMetadataFilter.class,
                    "metadataFilter", MetadataFilter.class, root);
        } catch (TikaConfigException e) {
            if (allowMissing && e.getMessage().contains("could not find metadataFilters")) {
                return new NoOpFilter();
            }
            throw e;
        }
    }
Loads the metadata filter from the config file if it exists, otherwise returns NoOpFilter
@param root
@return
@throws TikaConfigException
@throws IOException
tika-core/src/main/java/org/apache/tika/metadata/filter/MetadataFilter.java