docs: @Override
      public Collection<CommentInstance> getCaseComments(String caseId, QueryContext queryContext) throws CaseNotFoundException {
          authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.MODIFY_COMMENT);
          ProcessInstanceDesc pi = verifyCaseIdExists(caseId);
  
          CaseFileInstance caseFile = internalGetCaseFileInstance(caseId, pi.getDeploymentId());
  
          List<CommentInstance> caseComments = new ArrayList<>(((CaseFileInstanceImpl) caseFile).getComments());
          // apply authorization
          caseComments = authorizationManager.filterByCommentAuthorization(caseId, caseFile, caseComments);
          
          int caseCommentsSize = caseComments.size();
  
          int offset = queryContext.getOffset();
          int pageSize = queryContext.getCount();
  
          int pageIndex = (caseCommentsSize + pageSize - 1) / pageSize;
  
          if (caseCommentsSize < pageSize) {
              return caseComments;
          } else if (pageIndex == (offset/pageSize) + 1) {
              return caseComments.subList(offset, caseCommentsSize);
          } else {
              return caseComments.subList(offset, offset + pageSize);
          }
      }