public CatalogPojo getCatalog(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
final RequestData requestData = requestUtil.getRequestData(request);
final MarketArea currentMarketArea = requestData.getMarketArea();
final String catalogType = request.getParameter(RequestConstants.REQUEST_PARAMETER_CATALOG_TYPE);
CatalogPojo catalogPojo = new CatalogPojo();
if("master".equals(catalogType)){
final CatalogMaster catalogMaster = catalogService.getMasterCatalogById(currentMarketArea.getCatalog().getCatalogMaster().getId());
Set<CatalogCategoryMaster> catalogCategories = new HashSet<CatalogCategoryMaster>();
if(catalogMaster.getCatalogCategories() != null){