protected Element getArrows(SVGDocument doc) {
if (subActivities != null) {
ActivityInterface prevActivity = null;
ActivityInterface activity = null;
String id = null;
SVGCoordinates myStartCoords = getStartIconExitArrowCoords();
SVGCoordinates exitCoords = null;
org.wso2.carbon.bpel.ui.bpel2svg.SVGCoordinates entryCoords = null;
Iterator<ActivityInterface> itr = subActivities.iterator();
while (itr.hasNext()) {
activity = itr.next();
if (prevActivity != null) {
exitCoords = prevActivity.getExitArrowCoords();
entryCoords = activity.getEntryArrowCoords();
id = prevActivity.getId() + "-" + activity.getId();
return getArrowDefinition(doc, exitCoords.getXLeft(), exitCoords.getYTop(),
entryCoords.getXLeft(), entryCoords.getYTop(), id,
prevActivity, activity);
} else {
entryCoords = activity.getExitArrowCoords();
return getArrowDefinition(doc, myStartCoords.getXLeft(), myStartCoords.getYTop(),