// add bendpoint if collision if the connection part doesn't have any bend points.
// But we still route the connection for the purpose of calculating next "fan position" correctly.
// See Bug 374793 - Additional bend points added to connection when visible-when condition on nodes change
Point bendPoint = getConfigurationManager().getConnectionRouter().route(connectionModel);
DiagramLayoutPersistenceService persistenceService = getSapphirePart().service(DiagramLayoutPersistenceService.class);
if (persistenceService.read(connPart) == null && bendPoint != null && connPart.getBendpoints().isEmpty())
{
List<org.eclipse.sapphire.ui.Point> bendPoints = new ArrayList<org.eclipse.sapphire.ui.Point>(1);
bendPoints.add(new org.eclipse.sapphire.ui.Point(bendPoint.x, bendPoint.y));
connectionModel.getModelPart().resetBendpoints(bendPoints);
}