// ATTRIBUTES
List<ProductMarketingAttribute> globalAttributes = productMarketing.getGlobalAttributes();
if(globalAttributes != null){
for (Iterator<ProductMarketingAttribute> iterator = globalAttributes.iterator(); iterator.hasNext();) {
ProductMarketingAttribute attribute = (ProductMarketingAttribute) iterator.next();
productMarketingViewBean.getGlobalAttributes().put(attribute.getAttributeDefinition().getCode(), buildViewBeanAttributeValue(requestData, attribute));
}
}
List<ProductMarketingAttribute> marketAreaAttributes = productMarketing.getMarketAreaAttributes(marketArea.getId());
if(marketAreaAttributes != null){
for (Iterator<ProductMarketingAttribute> iterator = marketAreaAttributes.iterator(); iterator.hasNext();) {
ProductMarketingAttribute attribute = (ProductMarketingAttribute) iterator.next();
productMarketingViewBean.getMarketAreaAttributes().put(attribute.getAttributeDefinition().getCode(), buildViewBeanAttributeValue(requestData, attribute));
}
}
// ASSETS
if (Hibernate.isInitialized(productMarketing.getAssets()) && productMarketing.getAssets() != null) {