* "validate" method avoids that "material" goes to the Hibernate's
* session if "material" is not valid.
*/
material.validate();
Registry.getMaterialDAO().save(material);
material.dontPoseAsTransientObjectAnymore();
}
MaterialAssignment materialAssignment = MaterialAssignment
.create(material);
materialAssignment