if (subcategoryLimit != null && subcategoryOffset == null) {
subcategoryOffset = 1;
}
if (productLimit != null && productOffset != null) {
SearchService searchService = getSearchService();
ProductSearchCriteria searchCriteria = new ProductSearchCriteria();
searchCriteria.setPage(productOffset);
searchCriteria.setPageSize(productLimit);
searchCriteria.setFilterCriteria(new HashMap<String, String[]>());
try {
ProductSearchResult result = searchService.findExplicitProductsByCategory(category, searchCriteria);
List<Product> productList = result.getProducts();
if (productList != null && !productList.isEmpty()) {
if (products == null) {
products = new ArrayList<ProductWrapper>();
}