public Material build()
{
if (this.effectInstance == null)
throw new IllegalStateException("effectInstance not set");
final Material material = new Material(this.effectInstance);
material.setAsset(this.asset);
material.setId(this.id);
material.setName(this.name);
return material;
}