Connection conn = Transaction.begin(TurbineUserPeer.DATABASE_NAME);
boolean success = false;
try {
TurbineUserGroupRolePeer.doDelete(crit, conn);
entry.save(conn);
prefs.save(conn);
Transaction.commit(conn);
success = true;
} finally {
if (!success) Transaction.safeRollback(conn);