class MongoDbPageRepository implements PageRepository {

    @Override
    public List<Page> getLimitedList(int offset, int pageSize) {
        return template.find(new Query().skip(offset).limit(pageSize));
    }

}