LOGGER.debug("adding mixin {0} to resolved node {1}", mixin, resolved.getName());
}
{ // add properties
for (final String propName : unresolved.getProperties().keySet()) {
UnresolvedProperty property = unresolved.getProperties().get(propName);
assert (property != null);
boolean multiValued = property.isMulti();
if (multiValued) {
Value[] propertyValues = new Value[property.getValues().size()];
int i = 0;
for (String value : property.getValues()) {
propertyValues[i++] = valueFactory.createValue(value);
}
} else {
// single valued
final String mappedName = this.medHelper.getMappedPropertyName(propName);
resolved.setProperty(mappedName, property.getValue());
LOGGER.debug("setting property '{0}' with value '{1}' to resolved node {2}",
propName,
property.getValue(),
resolved.getName());
}
}
}