private static void createOrUpdateAttributeValues(List attributeValues, Product feature, String attributeId, String value, Language language = null, Boolean isUpdate) { if (canAttributeValueBeUpdated(isUpdate, attributeId)) { ProductAttributeValue productAttributeValue = constructAttributeValue(feature, attributeId, value, language) if (productAttributeValue) { attributeValues << productAttributeValue } } else { log.debug("Skipping updating value of attribute ${attributeId}. Feature id: ${feature.productId}") } } private static final List ATTRIBUTE_IDS_TO_BE_SKIPPED_DURING_UPDATE = [ IDS_DESCRIPTION.name, COMMERCIAL_SHORT_DESCRIPTION.name, IS_BPM_APPLICABLE.name, FEATURE_GROUP.name ]