private ModelDef getOverrideModel ( ModelDef model , ModelMetaData explicitMeta2 ) { if ( explicitMeta2 == null ) { return model ; } List < ModelDef > explicitList = explicitMeta2 . getModelDefinitionList ( ) ; for ( ModelDef explicitModel : explicitList ) { if ( explicitModel . getModelName ( ) . equals ( model . getModelName ( ) ) ) { return explicitModel ; } } return model ; }
When the mode is in the explecit model use it instead else use what s the in database