} else if (createFlags) {
EdgeEnd end = flagType == FlagClass.Type.In ? EdgeEnd.Begin : EdgeEnd.End;
IElement endFlag = createFlag(graph, attachToConnection, end, controlPoints.getLast(), flagType, null);
} else if (createFlags) {
EdgeEnd end = flagType == FlagClass.Type.In ? EdgeEnd.Begin : EdgeEnd.End;
IElement endFlag = createFlag(graph, attachToConnection, end, controlPoints.getLast(), flagType, null);