public boolean isAvailable(String sourceLanguage, String targetLanguage) {
        String configPath = config.getProperty(
                "translator.marian." + sourceLanguage + "_" + targetLanguage + ".config");
        String serverSocket = config.getProperty(
                "translator.marian." + sourceLanguage + "_" + targetLanguage + ".server");
        return (!marianPath.equals(DEFAULT_PATH) && !StringUtils.isEmpty(configPath)) ||
                !StringUtils.isEmpty(serverSocket);
    }
Checks if the approproate Marian engine is available.

@param sourceLanguage The language to translate from (for example, "en").
@param targetLanguage The desired language to translate to (for example, "hi").
@return
tika-translate/src/main/java/org/apache/tika/language/translate/impl/MarianTranslator.java