6869707172737475767778
} tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(entity); tx.commit(); return entity.toClientObject(false); } finally { if (tx != null && tx.isActive()) { tx.rollback(); } pm.close();