queue.handleDontPersist(null, ref, null);
queue.handleFromCluster(null, ref, null);
   public void addToQueue(String queueName, List messages) throws Exception   {      lock.readLock().acquire();                        try      {         Binding binding = this.getBindingForQueueName(queueName);                  if (binding == null)         {            throw new IllegalStateException("Cannot find binding for queue name " + queueName);         }                  Queue queue = binding.getQueue();                  Iterator iter = messages.iterator();                  while (iter.hasNext())         {            MessageReference ref = null;                        try            {               org.jboss.messaging.core.Message msg = (org.jboss.messaging.core.Message)iter.next();                              ref = ms.reference(msg);                              queue.handleDontPersist(null, ref, null);            }            finally            {               if (ref != null)               {                  ref.releaseMemoryReference();               }            }         }          }      finally      {                  lock.readLock().release();      }   }