Activity childAct = (Activity) srcDef.getChildActivities().get(i);
GraphActivity currGraphAct;
if (childAct instanceof Activity) {
Adapter adapter = ProcessDefinitionAdapter.getAdapter(childAct.getClass());
currGraphAct = (GraphActivity) adapter.convert(childAct, keyedContext);
} else {
currGraphAct = new GraphActivity(childAct);
}
if (previousGraphAct != null) {