*/
private AdvancedModelWrapper updateEOByUpdatedModel(EDBModelObject reference, AdvancedModelWrapper model,
Map<Object, AdvancedModelWrapper> updated) {
ModelDescription source = model.getModelDescription();
ModelDescription description = reference.getModelDescription();
AdvancedModelWrapper wrapper = updated.get(reference.getOID());
Object ref = null;
if (wrapper == null) {
ref = reference.getCorrespondingModel();
} else {
ref = wrapper.getUnderlyingModel();
}
Object transformResult = transformationEngine.performTransformation(source, description,
model.getUnderlyingModel(), ref);
return AdvancedModelWrapper.wrap(transformResult);
}