if (log.isTraceEnabled()) { log.trace("removing all message data for channel " + channelID); }
if (trace) { log.trace("removing all message data for channel " + channelID); }
   public void removeAllMessageData(Serializable channelID) throws Exception   {      if (log.isTraceEnabled()) { log.trace("removing all message data for channel " + channelID); }      Connection conn = null;      PreparedStatement ps = null;      TransactionWrapper wrap = new TransactionWrapper();      boolean success = false;      try      {         conn = ds.getConnection();                     ps = conn.prepareStatement(deleteChannelMessageRefs);                  ps.setString(1, (String)channelID);                  ps.executeUpdate();         success = true;      }      catch (Exception e)      {         wrap.exceptionOccurred();         throw e;      }      finally      {         if (log.isTraceEnabled())         {            String s = JDBCUtil.statementToString(deleteChannelMessageRefs, channelID);            log.trace(s + (success ? " successful" : "failed"));         }         if (ps != null)         {            try            {               ps.close();            }            catch (Throwable e)            {}         }         if (conn != null)         {            try            {               conn.close();            }            catch (Throwable e)            {}         }         wrap.end();      }   }