class MongoDbCategoryRepository implements CategoryRepository {

    @Override
    public List<Category> getLimitedList(int offset, int limit) {
        return CollectionUtils.<Category>toBaseTypedList(hydrate(template.find(new Query().skip(offset).limit(limit), CLASS)));
    }

}