List<Primitive> generator = this.getElements();
if (generator == null)
throw new IllegalArgumentException(
"Could not create the boundary of CompositeCurve."); //$NON-NLS-1$
HashSet<Complex> result = new HashSet<Complex>();
result.add( new CurveBoundaryImpl( getCoordinateReferenceSystem(),
new PointImpl( ((CurveImpl) generator
.get(0)).getStartPoint()), new PointImpl( ((CurveImpl) generator
.get(0)).getEndPoint()) ) );
return result;