conn = ds.getConnection();
conn = getConnection();  log.info("Removing all non-reliable message references");
   protected void resetMessageData() throws Exception   {      if (trace) { log.trace("Removing all non-persistent data"); }            Connection conn = null;      PreparedStatement ps = null;      TransactionWrapper wrap = new TransactionWrapper();            try      {         conn = ds.getConnection();                  ps = conn.prepareStatement(removeAllNonReliableRefs);                  int rows = ps.executeUpdate();                  if (trace)         {            log.trace(JDBCUtil.statementToString(removeAllNonReliableRefs)                  + " removed " + rows + " rows");         }                  ps.close();                  ps = null;                  ps = conn.prepareStatement(removeAllNonReliableMessages);                  rows = ps.executeUpdate();                  if (trace)         {            log.trace(JDBCUtil.statementToString(removeAllNonReliableMessages)                  + " removed " + rows + " rows");         }                  ps.close();                  ps = null;                  ps = conn.prepareStatement(updateAllReliableRefs);                  rows = ps.executeUpdate();                  if (trace)         {            log.trace(JDBCUtil.statementToString(updateAllReliableRefs)                  + " updated " + rows + " rows");         }               }      catch (Exception e)      {         wrap.exceptionOccurred();         throw e;      }      finally      {         if (ps != null)         {            try            {               ps.close();            }            catch (Throwable e)            {            }         }         if (conn != null)         {            try            {               conn.close();            }            catch (Throwable e)            {            }         }         wrap.end();      }   }