aStudyDS = _CAST(Study,aStudy)->GetStudy();
aGen->SetCurrentStudy(aStudyDS);
+ // Init mMULTIPRObj
+ _PTR(SComponent) aSComp = aStudy->FindComponent(name());
+ if (aSComp) {
+ _PTR(ChildIterator) it (aStudy->NewChildIterator(aSComp));
+ if (it->More()) {
+ _PTR(SObject) aSObj = it->Value();
+ string anIOR = aSObj->GetIOR();
+ if (!anIOR.empty()) {
+ CORBA::Object_var anObj = getApp()->orb()->string_to_object(anIOR.c_str());
+ mMULTIPRObj = MULTIPR_ORB::MULTIPR_Obj::_narrow(anObj);
+ }
+ }
+ }
+
return bOk;
}