code: private Set<String> getMappedCorpora(List<String> originalNames)
    {
      WebResource rootRes = Helper.getAnnisWebResource();
      Set<String> mappedNames = new HashSet<>();
      // iterate over given corpora and map names if necessary
      for (String selectedCorpusName : originalNames)
      {
        // get the real corpus descriptions by the name (which could be an alias)
        try
        {
          List<AnnisCorpus> corporaByName
            = rootRes.path("query").path("corpora").path(urlPathEscape.escape(
                selectedCorpusName))
            .get(new GenericType<List<AnnisCorpus>>()
            {
            });
  
          if (corporaByName != null && !corporaByName.isEmpty())
          {
            for (AnnisCorpus c : corporaByName)
            {
              mappedNames.add(c.getName());
            }
          }
        }
        catch (ClientHandlerException ex)
        {
          String msg = "alias mapping does not work for alias: "
            + selectedCorpusName;
          log.error(msg, ex);
          Notification.show(msg, Notification.Type.TRAY_NOTIFICATION);
        }
      }
      return mappedNames;
    }
docs: Takes a list of raw corpus names as given by the #c parameter and returns a
  list of corpus names that are known to exist. It also replaces alias names
  with the real corpus names.
  
  @param originalNames
  @return