code: public static CorpusConfig getCorpusConfig(String corpus)
    {
  
      if (corpus == null || corpus.isEmpty())
      {
        Notification.show("no corpus is selected",
          "please select at leas one corpus and execute query again",
          Notification.Type.WARNING_MESSAGE);
        return null;
      }
  
      CorpusConfig corpusConfig = new CorpusConfig();
  
      try
      {
        corpusConfig = Helper.getAnnisWebResource().path("query")
          .path("corpora").path(urlPathEscape.escape(corpus))
          .path("config").get(CorpusConfig.class);
      }
      catch (UniformInterfaceException | ClientHandlerException ex)
      {
        if(!AnnisBaseUI.handleCommonError(ex, "get corpus configuration"))
        {
          new Notification(ERROR_MESSAGE_CORPUS_PROPS_HEADER,
            ERROR_MESSAGE_CORPUS_PROPS, Notification.Type.WARNING_MESSAGE, true)
            .show(Page.getCurrent());
        }
      }
  
      return corpusConfig;
    }
docs: Loads the corpus config of a specific corpus.
  
  @param corpus The name of the corpus, for which the config is fetched.
  @return A {@link CorpusConfig} object, which wraps a {@link Properties}
  object. This Properties object stores the corpus configuration as simple
  key-value pairs.