public static PagingBean create(int page, int pageSize) {
        if (page <= 1) {
            page = 1;
        }
        if (pageSize == 0) {
            pageSize = 20;
        }
        return new PagingBean(page, pageSize);
    }
Create PagingBean with sensible defaults

@param page page number
@param pageSize page size
@return a new paging bean with provided values or sensible defaults
manager/api/beans/src/main/java/io/apiman/manager/api/beans/search/PagingBean.java