@Override
    public Parser build() throws IOException, SAXException, TikaException {
        String tikaConfigPath = args.remove(TIKA_CONFIG_PATH);
        TikaConfig tikaConfig = null;
        if (tikaConfigPath != null) {
            if (Files.isReadable(Paths.get(tikaConfigPath))) {
                tikaConfig = new TikaConfig(Paths.get(tikaConfigPath));
            } else if (this.getClass().getResource(tikaConfigPath) != null) {
                try (InputStream is = this.getClass().getResourceAsStream(tikaConfigPath)) {
                    tikaConfig = new TikaConfig(is);
                }
            }
        }
        if (tikaConfig == null) {
            tikaConfig = TikaConfig.getDefaultConfig();
        }
        return new AutoDetectParser(tikaConfig);
    }
Path to a tika-config file.  This must be a literal
file or findable on the classpath.
tika-core/src/main/java/org/apache/tika/parser/AutoDetectParserFactory.java