save profil model given file param model profil model param file file save profil model io except io goe wrong save profil model object model file file io except file output stream file file output stream file xmi writer xmi writer model xmi writer model file uml file persist persist version xmi writer write file flush except msg except save profil model log error msg io except msg file close 