Iterator itemPropertyIterator = itemDisplayAttributes.getItemProperties().iterator();
boolean firstItemProperty = true;
while (itemPropertyIterator.hasNext()) {
ItemPropertyAttributes itemPropertyAttributes =
(ItemPropertyAttributes) itemPropertyIterator.next();
if (firstItemProperty) {
firstItemProperty = false;
} else {
propertyIdWriter.write(",");
}
propertyIdWriter.write(itemPropertyAttributes.getId());
}
scriptWriter.write(",itemPropertyId:" + createJavaScriptString(propertyIdWriter.toString()));
scriptWriter.write("})");