ps.setInt(6, ref.getDeliveryCount()); ps.setString(7, ref.isReliable() ? "Y" : "N"); ps.setString(8, "Y");
   protected void prepareToAddReference(long channelID, MessageReference ref, Transaction tx, PreparedStatement ps)         throws Exception   {      if (trace)      {         log.trace("adding " + ref + " to channel " + channelID               + (tx == null ? " non-transactionally" : " on transaction: " + tx));      }      ps.setLong(1, channelID);      ps.setLong(2, ref.getMessageID());      ps.setLong(3, tx.getId());      ps.setString(4, "+");      ps.setLong(5, ref.getOrdering());   }