public static void freeUser(int userId, String entidad) throws Exception { DbConnection dbConn = new DbConnection(); try { dbConn.open(DBSessionManager.getSession(entidad)); dbConn.beginTransaction(); DaoUsrPoolTbl.setFreeStatus(dbConn, userId); dbConn.endTransaction(true); } catch (Exception e) { throw e; } finally { dbConn.close(); } }