docs: protected PaginatedList<DTO> findPaginatedWithQueryAndSort(DBQuery.Query query, DBSort.SortBuilder sort, int page, int perPage) {
          try (final DBCursor<DTO> cursor = db.find(query)
                  .sort(sort)
                  .limit(perPage)
                  .skip(perPage * Math.max(0, page - 1))) {
              return new PaginatedList<>(asImmutableList(cursor), cursor.count(), page, perPage);
          }
      }