if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: "  + channelID);}
   public void add(Serializable channelID, Delivery d) throws Throwable   {      if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); }      Routable r = d.getRoutable();      if (!r.isReference())      {         throw new IllegalStateException("Delivery must contain a message reference");      }      MessageReference ref = (MessageReference)r;      Connection conn = ds.getConnection();      String sql =            "INSERT INTO DELIVERIES VALUES ('" +            channelID + "', '" + ref.getMessageID() + "', '" + ref.getStoreID() + "')";      conn.createStatement().executeUpdate(sql);      if (log.isTraceEnabled()) { log.trace(sql); }      conn.close();   }