public static <T, T_RESULT_PAGE extends ResultPage<T>> T_RESULT_PAGE createCriterialBasedList(
            final List<T> realList,
            final BaseCriteria baseCriteria, final Long totalSize,
            final BiFunction<List<T>, PageResponse, T_RESULT_PAGE> function) {

        return createPageResultList(realList, baseCriteria.getPageRequest(), totalSize, function);
    }
Used for filter queries (maybe bounded).
stroom-util/src/main/java/stroom/util/ResultPageFactory.java