// ATTRIBUTES
List<AbstractAttribute> globalAttributes = catalogCategory.getGlobalAttributes();
if(globalAttributes != null){
for (Iterator<AbstractAttribute> iterator = globalAttributes.iterator(); iterator.hasNext();) {
AbstractAttribute attribute = (AbstractAttribute) iterator.next();
catalogCategoryViewBean.getGlobalAttributes().put(attribute.getAttributeDefinition().getCode(), buildViewBeanAttributeValue(requestData, attribute));
}
}
List<AbstractAttribute> marketAreaAttributes = catalogCategory.getMarketAreaAttributes(marketArea.getId());
if(marketAreaAttributes != null){
for (Iterator<AbstractAttribute> iterator = marketAreaAttributes.iterator(); iterator.hasNext();) {
AbstractAttribute attribute = (AbstractAttribute) iterator.next();
catalogCategoryViewBean.getMarketAreaAttributes().put(attribute.getAttributeDefinition().getCode(), buildViewBeanAttributeValue(requestData, attribute));
}
}
// ASSETS
final Asset defaultBackgroundImage = catalogCategory.getDefaultBackgroundImage();