return catalogBreadCumViewBean;
}
public StoreLocatorFilterBean buildFilterBeanStoreLocator(final List<StoreViewBean> stores, final Locale locale) throws Exception {
final StoreLocatorFilterBean filter = new StoreLocatorFilterBean();
final Map<String, StoreLocatorCountryFilterBean> countryFilterMap = new HashMap<String, StoreLocatorCountryFilterBean>();
final Map<String, StoreLocatorCityFilterBean> cityFilterMap = new HashMap<String, StoreLocatorCityFilterBean>();
for (StoreViewBean store : stores) {
String country = store.getCountry();
String city = store.getCity();
StoreLocatorCountryFilterBean countryFilter;
StoreLocatorCityFilterBean cityFilter;
if (countryFilterMap.containsKey(country)) {
countryFilter = countryFilterMap.get(country);
} else {
countryFilter = new StoreLocatorCountryFilterBean();
countryFilter.setCode(country);
String countryLabel = referentialDataService.getCountryByLocale(country, locale);
countryFilter.setName(countryLabel);
filter.addCountry(countryFilter);
countryFilterMap.put(country, countryFilter);
}
if (cityFilterMap.containsKey(city)) {
cityFilter = cityFilterMap.get(city);