code: public void generateQueries(long corpusId)
    {
      corpusIds = new ArrayList<>();
      corpusIds.add(corpusId);
      List<String> corpusNames = getQueryDao().mapCorpusIdsToNames(corpusIds);
      if(!corpusNames.isEmpty())
      {
        corpusName = corpusNames.get(0);
  
        if (queryBuilder != null)
        {
          for (QueryBuilder qB : queryBuilder)
          {
            generateQuery(qB);
          }
        }
      }
    }
docs: Iterates over all registered {@link QueryBuilder} and generate example
  queries.
  
  @param corpusId Determines the corpus, for which the example queries are
  generated for. It must be the final ANNIS id of the corpus.