public Light build()
{
if (this.lightSource == null)
throw new IllegalStateException("lightSource not set");
final CommonLightTechnique commonTechnique = new CommonLightTechnique(this.lightSource);
final Light light = new Light(commonTechnique);
light.setAsset(this.asset);
light.setId(this.id);
light.setName(this.name);
return light;
}