code: public void generateQueries(String name, boolean delete)
    {
      List<String> names = new ArrayList<>();
      names.add(name);
      List<Long> ids = queryDao.mapCorpusNamesToIds(names);
      if (!ids.isEmpty())
      {
        generateQueries(ids.get(0), delete);
      }
      else
      {
        log.error("{} is unknown to the system", name);
      }
    }
docs: Iterates over all registered {@link QueryBuilder} and generate example
  queries.
  
  @param name Determines the corpus, for which the example queries are
  generated for. It must be the final ANNIS id of the corpus.