public Point buildPoint()
{
if (this.color == null)
throw new IllegalStateException("color must be set");
final Point point = new Point(this.color);
point.setConstantAttenuation(this.constantAttenuation);
point.setLinearAttenuation(this.linearAttenuation);
point.setQuadraticAttenuation(this.quadraticAttenuation);
return point;
}