if (subActivities != null) {
ActivityInterface activity = null;
String id = null;
org.wso2.carbon.bpel.ui.bpel2svg.SVGCoordinates myStartCoords = getStartIconExitArrowCoords();
org.wso2.carbon.bpel.ui.bpel2svg.SVGCoordinates myExitCoords = getEndIconEntryArrowCoords();
SVGCoordinates activityExitCoords = null;
SVGCoordinates activityEntryCoords = null;
Iterator<ActivityInterface> itr = subActivities.iterator();
while (itr.hasNext()) {
activity = itr.next();
activityExitCoords = activity.getExitArrowCoords();
activityEntryCoords = activity.getEntryArrowCoords();
subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(),
myStartCoords.getYTop(), activityEntryCoords.getXLeft(),
activityEntryCoords.getYTop(), id, activity, activity));
subGroup.appendChild(getArrowDefinition(doc, activityExitCoords.getXLeft(),
activityExitCoords.getYTop(), myExitCoords.getXLeft(),
myExitCoords.getYTop(), id, activity, activity));
}
}