private static Parser getParser(TikaConfig config) {
        if (config.getAutoDetectParserConfig().getDigesterFactory() == null) {
            return config.getParser();
        }
        return new DigestingParser(config.getParser(),
                config.getAutoDetectParserConfig().getDigesterFactory().build(),
                config.getAutoDetectParserConfig().getDigesterFactory().isSkipContainerDocument());
    }
Creates an auto-detecting parser instance using the specified set of parser.
This allows one to create a Tika configuration where only a subset of the
available parsers have their 3rd party jars included, as otherwise the
use of the default TikaConfig will throw various "ClassNotFound" exceptions.

@param parsers
tika-core/src/main/java/org/apache/tika/parser/AutoDetectParser.java