Changed code where String properties where retrieved by item.getProperty() or descriptorMap.get(). Instead now item.getPropertyAsString or DescriptorUtils.getPropertyAsString() are used. This "protects" the code from properties that are Lists because of duplicate values.