if (StringUtils.isEmpty(retailerCode)) {
final String urlRedirect = backofficeUrlService.generateUrl(BoUrls.RETAILER_LIST, requestData);
return new ModelAndView(new RedirectView(urlRedirect));
}
final Retailer retailer = retailerService.getRetailerByCode(retailerCode);
displayList(request, model, requestData, null);
Object[] params = {retailer.getName() + " (" + retailer.getCode() + ")"};
overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, BoUrls.STORE_LIST.getKey() + ".by.retailer", params);
model.addAttribute(ModelConstants.URL_ADD, backofficeUrlService.generateUrl(BoUrls.STORE_ADD, requestData, retailer));
model.addAttribute(ModelConstants.URL_RETAILER_VIEW, backofficeUrlService.generateUrl(BoUrls.RETAILER_DETAILS, requestData, retailer));