destAct.setname_Attribute(new XNCName(srcAct.getName().getText().replace(' ', '_')));
Vector childActivities = srcAct.getChildActivities();
for(Enumeration enumeration = childActivities.elements(); enumeration.hasMoreElements();){
Object item = (Object)enumeration.nextElement();
Adapter adpt = ProcessDefinitionAdapter.getAdapter(item.getClass());
if(adpt==null){
continue;
}
activity actGrp_ = (activity)adpt.convert(item, keyedContext);
destAct.addactivity_Group(actGrp_);
}
activity resultAct = new activity();
resultAct.setflowAsChoice(destAct);