private void preloadLangs() {
        String[] args = new String[]{getTesseractPath() + getTesseractProg(), "--list-langs"};

        ProcessBuilder pb = new ProcessBuilder(args);

        setEnv(pb);

        Process process = null;
        try {
            process = pb.start();
            getLangs(process, defaultConfig.getTimeoutSeconds());
        } catch (TikaException | IOException e) {
            LOG.warn("Problem preloading langs", e);
        } finally {
            if (process != null) {
                process.destroyForcibly();
            }
        }
    }
If set to <code>true</code> and if tesseract is found, this will load the
langs that result from --list-langs. At parse time, the
parser will verify that tesseract has the requested lang
available.
<p>
If set to <code>false</code> (the default) and tesseract is found, if a user
requests a language that tesseract does not have data for,
a TikaException will be thrown with tesseract's native exception
message, which is a bit less readable.

@param preloadLangs
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-ocr-module/src/main/java/org/apache/tika/parser/ocr/TesseractOCRParser.java