test xmi writer mdr impl fail write profil file contain model previous load file profil except load profil fail io except io error occur write read file file except file isn uml except error occur write profil xmi format test write previous load profil profil except file except io except uml except profil model loader loader resourc model loader collect model loader load model core profil refer uml xmi object uml model model iter uml model model facad uml model uml model file temp file file creat temp file uml model xmi file output stream stream file output stream temp file xmi writer xmi writer model xmi writer uml model stream version xmi writer write stream close file model loader file model loader file model loader collect load model file model loader load model user profil refer temp file path equal load model size uml model load model iter equal uml model model facad uml model 