public static <T> Collector<T, List<T>, ResultPage<T>> collector(final PageRequest pageRequest) {
        return createCollector(pageRequest, ResultPage::new);
    }
Creates a collector that builds a sub class of a ResultPage, e.g.
.collect(ListConfigResponse.collector(ListConfigResponse::new));
stroom-util-shared/src/main/java/stroom/util/shared/ResultPage.java