loger.fine("Handling: " + hpi.getActivityName());
if (hpi instanceof HistoryActivityInstanceImpl) {
HistoryActivityInstanceImpl activity = (HistoryActivityInstanceImpl) hpi;
String activityName = activity.getActivityName();
if (res.isEmpty()) { //initialize start node and its transition
GraphElement startNode = processGraphElements.get("__AWF__start_node");
if (startNode != null) {
res.add(startNode);
}
GraphElement firstTransition = processGraphElements.get("__AWF__start_transition_to_" + activityName);
if (firstTransition != null) {
res.add(firstTransition);
}
}