private LRUMap<String, String> getTranslationCache(String sourceLanguage,
                                                       String targetLanguage) {
        LRUMap<String, String> translationCache =
                cache.get(buildCacheKeyString(sourceLanguage, targetLanguage));
        if (translationCache == null) {
            translationCache = new LRUMap<>(INITIAL_ENTRIES, MAX_ENTRIES);
            cache.put(buildCacheKeyString(sourceLanguage, targetLanguage), translationCache);
        }
        return translationCache;
    }
Get the cache of translations from the given source language to target language.

@param sourceLanguage The source language of translation.
@param targetLanguage The target language of translation.
@return The LRUMap representing the translation cache.
tika-translate/src/main/java/org/apache/tika/language/translate/impl/CachedTranslator.java