}
em.getTransaction().commit();
} catch (Exception ex) {
String msg = ex.getLocalizedMessage();
if (msg == null || msg.length() == 0) {
StoragetabPK id = storagetab.getStoragetabPK();
if (findStoragetab(id) == null) {
throw new NonexistentEntityException("The storagetab with id " + id + " no longer exists.");
}
}
throw ex;