Pager<Question> pager = new Pager<Question>();
pager.setCount(dao.count(Question.class, query.q));
pager.setPage(query.page);
pager.setPageSize(query.pageSize);
if (query.skip() > 0)
cur.skip(query.skip());
if (query.limit() > 0)
cur.limit(query.limit());
pager.setData(dao.find(Question.class, query.q, cur));
return pager;
}