private List < AdvancedModelWrapper > updateReferencedModelsByEO ( EngineeringObjectModelWrapper model ) { List < AdvancedModelWrapper > updates = new ArrayList < AdvancedModelWrapper > ( ) ; for ( Field field : model . getForeignKeyFields ( ) ) { try { AdvancedModelWrapper result = performMerge ( model , loadReferencedModel ( model , field ) ) ; if ( result != null ) { updates . add ( result ) ; } } catch ( EDBException e ) { LOGGER . debug ( "Skipped referenced model for field {}, since it does not exist." , field , e ) ; } } return updates ; }
Updates all models which are referenced by the given engineering object .