ArrayList edges = new ArrayList();
ArrayList<NetEdge> edges = new ArrayList<NetEdge>();
    public List getOutBoundEdges() {        ArrayList edges = new ArrayList();        NetPort srcPort = (NetPort) getPort();        Enumeration theElements = srcPort.getEdges().elements();        while (theElements.hasMoreElements()) {            NetEdge edge = (NetEdge) theElements.nextElement();            if (edge.getSourcePort() == srcPort) {                edges.add(edge);            }        }        return edges;    }