ConfigurationProperty memberDef = convertDefinition(def.getMemberDefinition());
ret.setConfigurationProperty(new JAXBElement<ConfigurationProperty>(getTagName(memberDef),
ConfigurationProperty.class, memberDef));
if (prop != null) {
PropertyValuesDescriptor values = new PropertyValuesDescriptor();
ret.setValues(values);
for (Property el : prop.getList()) {
ComplexValueDescriptor value = convertValue(el);
//we don't need the property-name in lists, because the list has just a single member definition
value.setPropertyName(null);
addToJAXBElementList(values.getComplexValue(), Object.class, value, getTagName(value));
}
}
return ret;
}