@Override
 public void deteleForm(String id) throws FormDeleteException {
   try {
     Form848 form848 = findByPrePrintedNumber(id);
     em.remove(form848);
   } catch (FormNotFoundException e) {
     e.printStackTrace();
     throw new FormDeleteException(e.getMessage());
   }
 }
  @Override
  public void updateForm(Form form) throws UpdateFormException {
    try {
      Form848 form848 = findByPrePrintedNumber((String) form.getCell("prePrintedNumber").getData());

      form848.fillForm(form);
      em.persist(form848);

    } catch (FormNotFoundException e) {
      logger.error(e);
      throw new UpdateFormException(e.getClass() + " --> " + e.getMessage());
    } catch (FillFormException e) {
      logger.error(e);
      throw new UpdateFormException(e.getClass() + " --> " + e.getMessage());
    }
  }