if(null == containerInstance) {
containerInstance = containerValue.getContainerInstance();
}
containersMap.put(containerValue, containerInstance);
if(containerValue.getMapping() instanceof XMLChoiceCollectionMapping) {
XMLChoiceCollectionMappingUnmarshalNodeValue nodeValue = (XMLChoiceCollectionMappingUnmarshalNodeValue)containerValue;
for(NodeValue next:nodeValue.getAllNodeValues()) {
NodeValue nestedNodeValue = ((XMLChoiceCollectionMappingUnmarshalNodeValue)next).getChoiceElementNodeValue();
containersMap.put((ContainerValue)nestedNodeValue, containerInstance);
}
}
}