@Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = true)
public QualityForm findUniqueByName(String name)
throws InstanceNotFoundException, NonUniqueResultException {
Criteria c = getSession().createCriteria(QualityForm.class);
c.add(Restrictions.eq("name", name));
QualityForm qualityForm = (QualityForm) c.uniqueResult();
if (qualityForm == null) {
throw new InstanceNotFoundException(null, "QualityForm");
}
return qualityForm;