public JConnection addRightLeftConnection( ConnectionType type, EntityFigure label, Integer occurences) { JConnection connection = new JConnection(type); connection.setRightLeftAnchors(this, label); connection.setLabel(occurences); outgoingConnections.add(connection); return connection; }