public static QualityForm retrieveQualityFormFrom(
         BandboxSearch qualityFormFinder,
         ICheckQualityFormAssigned checkQualityFormAssigned) {
     QualityForm qualityForm = (QualityForm) qualityFormFinder
             .getSelectedElement();
     if (qualityForm == null) {
         throw new WrongValueException(qualityFormFinder,
                 _("please, select a quality form"));
     }
     if (checkQualityFormAssigned.isAssigned(qualityForm)) {
         throw new WrongValueException(qualityFormFinder,
                 _("already assigned"));
     }
     qualityFormFinder.clear();
     return qualityForm;
 }
    private void openWindow(OrderElement orderElement) {
        assignedTaskQualityFormsToOrderElementModel.init(orderElement);

        // Clear components
        bdQualityForms.clear();
        Util.createBindingsFor(self);
        Util.reloadBindings(self);
        reloadTaskQualityForms();
    }