account = em.merge(account);
}
em.getTransaction().commit();
} catch (Exception ex) {
if (findFactionstat(factionstat.getFactionstatPK()) != null) {
throw new PreexistingEntityException("Factionstat " + factionstat + " already exists.", ex);
}
throw ex;
} finally {
if (em != null) {
em.close();