novie-core/src/main/java/com/groupon/novie/internal/controllers/ApiController.java
private List<ReportRecord> inMemoryPagination(final List<ReportRecord> recordList, QueryParameterEnvelope queryParameterEnvelope) {
        final QueryParameterAware pageSize = queryParameterEnvelope.getPageSize();
        final QueryParameterAware pageNumber = queryParameterEnvelope.getPageNumber();
        if (pageSize != null && pageNumber != null) {
            final Integer pageSizeValue = ((PageSizeConstraint) pageSize).getPageSizeValue();
            final Integer pageValue = ((PageNumberConstraint) pageNumber).getPageNumberValue() - 1;
            int offset = pageValue * pageSizeValue;
            return recordList.subList(offset > recordList.size() ? recordList.size() : offset, offset + pageSizeValue > recordList.size()
                    ? recordList.size() : offset + pageSizeValue);
        }
        return recordList;
    }
private List<ReportRecord> inMemoryPagination(final List<ReportRecord> recordList, QueryParameterEnvelope queryParameterEnvelope) {
        final QueryParameterAware pageSize = queryParameterEnvelope.getPageSize();
        final QueryParameterAware pageNumber = queryParameterEnvelope.getPageNumber();
        if (pageSize != null && pageNumber != null) {
            final Integer pageSizeValue = ((PageSizeConstraint) pageSize).getPageSizeValue();
            final Integer pageValue = ((PageNumberConstraint) pageNumber).getPageNumberValue() - 1;
            int offset = pageValue * pageSizeValue;
            return recordList.subList(offset > recordList.size() ? recordList.size() : offset, offset + pageSizeValue > recordList.size()
                    ? recordList.size() : offset + pageSizeValue);
        }
        return recordList;
    }
TODO to be removed

@param recordList
@param queryParameterEnvelope
@return