code: public static String extractToplevelCorpusNames(InputStream corpusTabContent)
    {
      String result = null;
  
      try(CSVReader csv = new CSVReader(new InputStreamReader(
          corpusTabContent, "UTF-8"), '\t'))
      {
        
        String[] line;
        int maxPost = Integer.MIN_VALUE;
        int minPre = Integer.MAX_VALUE;
  
        while ((line = csv.readNext()) != null)
        {
          if (line.length >= 6 && "CORPUS".equalsIgnoreCase(line[2]))
          {
            int pre = Integer.parseInt(line[4]);
            int post = Integer.parseInt(line[5]);
  
            if (pre <= minPre && post >= maxPost)
            {
              minPre = pre;
              maxPost = post;
              result = line[1];
            }
          }
        }
      }
      catch (UnsupportedEncodingException ex)
      {
        log.error(null, ex);
      }
      catch (IOException ex)
      {
        log.error(null, ex);
      }
      return result;
    }
docs: Extract the name of the toplevel corpus from the content of the
  corpus.tab file.
  
  @param corpusTabContent
  @return