entity = manager.find(Entity.class, entity.getId()); if (entity != null) manager.remove(entity); return getReturn();
if (tm.getTransaction() == null) return false; if (!tm.getClass().toString().contains("arjuna")) return false; if (!tm.getTransaction().getClass().toString().contains("arjuna")) return false; return true;
return getReturn();
manager.persist(entity); return getReturn();