code: public static CorpusConfigMap getCorpusConfigs()
    {
  
      CorpusConfigMap corpusConfigurations = null;
  
      try
      {
        corpusConfigurations = Helper.getAnnisWebResource().path(
          "query").path("corpora").path("config").get(CorpusConfigMap.class);
      }
      catch (UniformInterfaceException | ClientHandlerException ex)
      {
        UI.getCurrent().access(new Runnable()
        {
  
          @Override
          public void run()
          {
            if(!AnnisBaseUI.handleCommonError(ex, "get corpus configurations"))
            {
              new Notification(ERROR_MESSAGE_CORPUS_PROPS_HEADER,
                ERROR_MESSAGE_CORPUS_PROPS, Notification.Type.WARNING_MESSAGE, true).
                show(Page.getCurrent());
            }
          }
        });
      }
  
      if (corpusConfigurations == null)
      {
        corpusConfigurations = new CorpusConfigMap();
      }
  
      corpusConfigurations.put(DEFAULT_CONFIG, getDefaultCorpusConfig());
  
      return corpusConfigurations;
    }
docs: Loads the all available corpus configurations.
  
  
  @return A {@link CorpusConfigMap} object, which wraps a Map of
  {@link Properties} objects. The keys to the properties are the corpus
  names. A Properties object stores the corpus configuration as simple
  key-value pairs. The Map includes also the default corpus configuration.