Edge edge = (Edge)object;
if (!(edge.data instanceof DiagramConnectionModel))
{
continue;
}
DiagramConnectionModel conn = (DiagramConnectionModel)edge.data;
NodeList nodes = edge.vNodes;
DiagramConnectionPart connPart = conn.getModelPart();
ArrayList<org.eclipse.sapphire.ui.Point> connBendPoints = new ArrayList<org.eclipse.sapphire.ui.Point>();
if (nodes != null)
{
//int bpIndex = 0;
for (int i = 0; i < nodes.size(); i++)