if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: "  + channelID);}
   public boolean remove(Serializable channelID, Delivery d) throws Throwable   {      if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); }      Serializable messageID = d.getRoutable().getMessageID();      Connection conn = ds.getConnection();      String sql = "SELECT MESSAGEID FROM DELIVERIES WHERE " +            "CHANNELID = '" + channelID + "' AND " +            "MESSAGEID = '" + messageID+ "'";      ResultSet rs = conn.createStatement().executeQuery(sql);      if (log.isTraceEnabled()) { log.trace(sql); }      if(!rs.next())      {         if (log.isTraceEnabled()) { log.trace("no delivery in database"); }         conn.close();         return false;      }      sql = "DELETE FROM DELIVERIES WHERE " +            "CHANNELID = '" + channelID + "' AND " +            "MESSAGEID = '" + d.getRoutable().getMessageID() + "'";      conn.createStatement().executeUpdate(sql);      if (log.isTraceEnabled()) { log.trace(sql); }      conn.close();      return true;   }