private static PageResponse createPageResponse(final List<?> values, final PageResponse pageResponse) {
        if (values != null) {
            return new PageResponse(pageResponse.getOffset(),
                    values.size(),
                    pageResponse.getTotal(),
                    pageResponse.isExact());
        }
        return new PageResponse(pageResponse.getOffset(), 0, pageResponse.getTotal(), pageResponse.isExact());
    }
Used for full queries (not bounded).
stroom-util/src/main/java/stroom/util/ResultPageFactory.java