private void handleOutputs(HyperEdge edge,
                               Color color,
                               Map<Point, Element> pointToElm,
                               Map<Renderable, String> rToGraphId,
                               Element pathwayElm) {
        List<Point> backbone = edge.getBackbonePoints();
        List<List<Point>> outputBranches = edge.getOutputPoints();
        if (outputBranches != null && outputBranches.size() > 0) {
            String anchorId = "e_" + edge.getID() + "_a_o";
            Point anchor = backbone.get(backbone.size() - 1);
            int index = 0;
            for (List<Point> points : outputBranches) {
                Element lineElm = createLineElmForBranch(points,
                                                         anchor,
                                                         anchorId,
                                                         true, 
                                                         "e_" + edge.getID() + "_o" + index, // O for output
                                                         color,
                                                         pointToElm);
                index ++;
                pathwayElm.addContent(lineElm);
            }
        }
        List<Node> outputs = edge.getOutputNodes();
        if (outputs.size() == 1) {
            Point p = backbone.get(backbone.size() - 1);
            Node node = outputs.get(0);
            linkPointToNode(p, 
                            pointToElm,
                            rToGraphId,
                            node);
            Element pointElm = pointToElm.get(p);
            pointElm.setAttribute(GPMLConstants.ArrowHead, "Arrow");
        }
        else if (outputs.size() > 1) {
            for (int i = 0; i < outputs.size(); i ++) {
                Node output = outputs.get(i);
                List<Point> points = outputBranches.get(i);
                Point point = points.get(0);// The first point is used to link to node
                linkPointToNode(point, pointToElm, rToGraphId, output);
            }
        }
    }