// a collection of maps requires an extra intermediate object that does the
// lazy combination/caching of maps when first used
BeanDefinitionBuilder combiner = BeanDefinitionBuilder.rootBeanDefinition(MapCombiner.class);
targetProperties.addPropertyValue(newName, combiner.getBeanDefinition());
MutablePropertyValues combinerProperties = combiner.getBeanDefinition().getPropertyValues();
oldValue = new ManagedList();
pv = new PropertyValue(MapCombiner.LIST, oldValue);
combinerProperties.addPropertyValue(pv);
}
else
{
oldValue = new ManagedList();
pv = new PropertyValue(newName, oldValue);
targetProperties.addPropertyValue(pv);
}
}