code: public CorpusConfig getCorpusConfigWithCache(String corpus)
    {
      CorpusConfig config = new CorpusConfig();
      if (corpusConfigCache != null)
      {
        config = corpusConfigCache.getIfPresent(corpus);
        if (config == null)
        {
          if (corpus.equals(DEFAULT_CONFIG))
          {
            config = Helper.getDefaultCorpusConfig();
          }
          else
          {
            config = Helper.getCorpusConfig(corpus);
          }
  
          corpusConfigCache.put(corpus, config);
        }
      }
  
      return config;
    }
docs: Get a cached version of the {@link CorpusConfig} for a corpus.
  
  @param corpus
  @return