}
}
if (curveSegment.getType().equals(CurveSegment.Type.LINE_SEGMENT))
{
LineSegment realCurveSegment = new LineSegment(curveSegment);
setNamespace(realCurveSegment, namespaceURI);
logger.debug("Transformed CubicBezier: " + curveSegment + " into LineSegment.");
curve.getListOfCurveSegments().remove(i);
curve.getListOfCurveSegments().add(i, realCurveSegment);
}