Locale contentLocale) {
for (I_EntityAttribute attribute : entity.getAttributes()) {
String elementPath = parentPath + getElementName(attribute.getAttributeName());
if (attribute.isSimpleValue()) {
List<String> values = attribute.getSimpleValues();
<BUG>for (int i = 1; i <= values.size(); i++) {

String value = values.get(i);
content.addValue(cms, elementPath, contentLocale, i).setStringValue(cms, value);

}</BUG>
} else {

Locale contentLocale) {
for (I_EntityAttribute attribute : entity.getAttributes()) {
String elementPath = parentPath + getElementName(attribute.getAttributeName());
if (attribute.isSimpleValue()) {
List<String> values = attribute.getSimpleValues();
for (int i = 0; i < values.size(); i++) {
String value = values.get(i);
I_CmsXmlContentValue field = content.getValue(elementPath, contentLocale, i);
if (field == null) {
field = content.addValue(cms, elementPath, contentLocale, i);
}
field.setStringValue(cms, value);
}
} else {
