this.sessionEndpoint.consumers.remove(id);
   void remove()   {      if (log.isTraceEnabled()) log.trace("attempting to remove receiver from destination: " + destination);       for(Iterator i = deliveries.keySet().iterator(); i.hasNext(); )      {         Object messageID = i.next();         Delivery d = (Delivery)deliveries.get(messageID);         try         {            d.cancel();         }         catch(Throwable t)         {            log.error("Cannot cancel delivery: " + d, t);         }         i.remove();      }            boolean removed = destination.remove(this);            if (log.isTraceEnabled()) log.trace("receiver " + (removed ? "" : "NOT ")  + "removed");                  this.sessionEndpoint.connectionEndpoint.receivers.remove(id);      this.sessionEndpoint.consumers.remove(id);         }   