this.active = category.isActive();
}
protected List<CategoryWrapper> buildSubcategoryTree(List<CategoryWrapper> wrappers, Category root, HttpServletRequest request) {
CatalogService catalogService = (CatalogService) context.getBean("blCatalogService");
Integer subcategoryLimit = (Integer) request.getAttribute("subcategoryLimit");
Integer subcategoryOffset = (Integer) request.getAttribute("subcategoryOffset");
List<Category> subcategories = catalogService.findActiveSubCategoriesByCategory(root, subcategoryLimit, subcategoryOffset);
if (subcategories !=null && !subcategories.isEmpty() && wrappers == null) {
wrappers = new ArrayList<CategoryWrapper>();
}
for (Category c : subcategories) {