return ret;
}
private static MapPropertyInstanceDescriptor createMap(PropertyDefinitionMap def, PropertyMap prop) {
MapPropertyInstanceDescriptor ret = new MapPropertyInstanceDescriptor();
setCommonProps(ret, def, true);
for (PropertyDefinition mem : def.getOrderedPropertyDefinitions()) {
ConfigurationProperty memDef = convertDefinition(mem);
addToJAXBElementList(ret.getConfigurationProperty(), ConfigurationProperty.class, memDef,
getTagName(memDef));
}
if (prop != null) {
PropertyValuesDescriptor values = new PropertyValuesDescriptor();
ret.setValues(values);
for (Property el : prop.getMap().values()) {
ComplexValueDescriptor value = convertValue(el);
addToJAXBElementList(values.getComplexValue(), Object.class, value, getTagName(value));
}