@JsonIgnore
    public int getPageSize() {
        if (pageResponse.getTotal() == null) {
            return getPageStart() + values.size();
        }
        return pageResponse.getTotal().intValue();
    }
@return the first item or null if the list is empty
stroom-util-shared/src/main/java/stroom/util/shared/ResultPage.java