code: @Override
      public void process(JCas jCas) throws AnalysisEngineProcessException {
  
          int sentenceCnt = 0;
          int runningPageEnd = 0;
  
          for (Sentence sentence : JCasUtil.select(jCas, Sentence.class)) {
  
              if (sentenceCnt++ % splitEvery == 0) {
  
                  new DocumentPage(jCas, runningPageEnd, sentence.getEnd())
                          .addToIndexes();
                  runningPageEnd = sentence.getEnd();
              }
          }
      }
docs: LATER configure