/**
*
*/
public List<MarketAreaViewBean> buildListViewBeanMarketArea(final RequestData requestData, final Market market, final List<MarketArea> marketAreas) throws Exception {
List<MarketAreaViewBean> marketAreaViewBeans = new ArrayList<MarketAreaViewBean>();
final MarketArea currentMarketArea = requestData.getMarketArea();
if(marketAreas!= null
&& !marketAreas.isEmpty()){
for (Iterator<MarketArea> iteratorMarketArea = marketAreas.iterator(); iteratorMarketArea.hasNext();) {
final MarketArea marketArea = (MarketArea) iteratorMarketArea.next();
// RELOAD THE MARKET TO KEEP AN ENTITY WITH RIGHT FETCHS
final Market reloadedMarket = marketService.getMarketByCode(marketArea.getMarket().getCode());
// RELOAD THE MARKETPLACE TO KEEP AN ENTITY WITH RIGHT FETCHS
final MarketPlace reloadedMarketPlace = marketService.getMarketPlaceByCode(reloadedMarket.getMarketPlace().getCode());
final MarketArea reloadedMarketArea = marketService.getMarketAreaByCode(marketArea.getCode());
final Localization defaultLocalization = reloadedMarketArea.getDefaultLocalization();
final Retailer defaultRetailer = reloadedMarketArea.getDefaultRetailer();
final CurrencyReferential defaultCurrency = reloadedMarketArea.getDefaultCurrency();
RequestData requestDataForThisMarketArea = new RequestData();
BeanUtils.copyProperties(requestData, requestDataForThisMarketArea);
requestDataForThisMarketArea.setMarketPlace(reloadedMarketPlace);
requestDataForThisMarketArea.setMarket(reloadedMarket);