private AdvancedModelWrapper performMerge ( AdvancedModelWrapper source , AdvancedModelWrapper target ) { if ( source == null || target == null ) { return null ; } ModelDescription sourceDesc = source . getModelDescription ( ) ; ModelDescription targetDesc = target . getModelDescription ( ) ; Object transformResult = transformationEngine . performTransformation ( sourceDesc , targetDesc , source . getUnderlyingModel ( ) , target . getUnderlyingModel ( ) ) ; AdvancedModelWrapper wrapper = AdvancedModelWrapper . wrap ( transformResult ) ; wrapper . removeOpenEngSBModelEntry ( EDBConstants . MODEL_VERSION ) ; return wrapper ; }
Performs the merge from the source model to the target model and returns the result . Returns null if either the source or the target is null .