public void save() throws Exception {
    ConsentOrderService consentOrderService = ConsentOrderService.getConsentOrderService();
    this.reOrderActnSet();
    int idx;
    consntOrder.getConsntOrdExhbts().clear();
    Iterator it = actnList.iterator();

    while (it.hasNext()) {

      ConsntOrdExhbt exhb = (ConsntOrdExhbt) it.next();
      idx = actnList.indexOf(exhb);
      exhb.setSeqNo(idx + 1);
      if (0 == exhb.getId().getRegDocEt().getUsrId()) {
        exhb.getId().getRegDocEt().setUsrId(usrBean.getUsrId());
      }
      consntOrder.getConsntOrdExhbts().add(exhb);
    }

    if (isUploadDocs()) {
      uploadFiles(); // first saving the documents and setting upload info
      setUploadFilesFlag(true);
    }
    for (ConsntOrdExhbt exhibit : getConsntOrder().getConsntOrdExhbts()) {
      if (exhibit.getId().getRegDocEt().isToBeUploaded()) {
        DocumentService.getDocumentService().saveNoCommit(exhibit.getId().getRegDocEt());
        exhibit.getId().getRegDocEt().setToBeUploaded(false);
      }
    }
    log.info("Saving  Exhibits to the Consent Order");
    consentOrderService.saveConsentOrder(consntOrder);
    this.setDocName("");
    this.setFileName("");
    this.setSelectedFileListSize(0);
    this.setPreviousSelFiles(0);
    this.setAddNewExhibits(false);
    if (!isUploadDocs()) {
      this.addMessage(FacesMessage.SEVERITY_INFO, " Exhibits Saved successfully.");
    }
  }
 public void deleteExhibit() {
   ConsentOrderService.getConsentOrderService()
       .removeExhibit(consntOrder, selectedExhibit.getSeqNo());
 }