String msg = E.HIBERNATE + eH.getMessage();
String msg = eH.getMessage();
  protected static void saveAndDelete(Set saves, Set deletes)    throws HibernateException  {     try {      Session     hs    = HibernateHelper.getSession();      Transaction tx    = hs.beginTransaction();      Object      oD;      Object      oS;      Iterator    iterD = deletes.iterator();      Iterator    iterS = saves.iterator();      try {        while (iterD.hasNext()) {          oD = iterD.next();          try {            hs.delete( _getPersistent(hs, oD) );          }          catch (HibernateException eH) {            String msg = "XXX unable to delete " + oD + ": " + eH.getMessage();            throw new HibernateException(msg, eH);          }        }        while (iterS.hasNext()) {          oS = iterS.next();          try {            hs.saveOrUpdate(oS);          }          catch (HibernateException eH) {            String msg = "unable to save " + oS + ": " + eH.getMessage();            throw new HibernateException(msg, eH);          }        }        try {          tx.commit();        }        catch (HibernateException eH) {          String msg = E.HIBERNATE_COMMIT + eH.getMessage();          throw new HibernateException(msg, eH);        }      }      catch (HibernateException eH) {        tx.rollback();        throw new HibernateException(eH.getMessage(), eH);      }      finally {        hs.close();      }    }    catch (HibernateException eH) {      String msg = E.HIBERNATE + eH.getMessage();      ErrorLog.error(HibernateHelper.class, msg);      throw new HibernateException(msg, eH);    }    DebugLog.info(HibernateHelper.class, "saved: " + saves.size() + " deleted: " + deletes.size());  } // protected static void saveAndDelete(saves, deletes)