try {  grabbing = true;   promptDelivery();  javax.jms.Message ret = (javax.jms.Message)toGrab;  return ret; } finally { toGrab = null;  grabbing = false; }
acquireLock();  grabbing = true;   promptDelivery();  javax.jms.Message ret = (javax.jms.Message)toGrab;  return ret;
   public javax.jms.Message getMessageNow() throws JMSException   {            synchronized (deliveryLock)      {         try         {                        grabbing = true;                        //This will always deliver a message (if there is one) on the same thread            promptDelivery();                        javax.jms.Message ret = (javax.jms.Message)toGrab;                        return ret;         }         finally         {            toGrab = null;                        grabbing = false;         }               }   }