code: private synchronized boolean isQueueEmptyForSessionId (final short sessionId) {
       if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isQueueEmptyForSessionId", "sessionId="+sessionId);
  
       boolean empty = true;
       final Iterator it = queue.iterator();
       while(it.hasNext()) {
         final QueueData data = (QueueData)it.next();
         final ProxyQueue pq = data.getProxyQueue();
         if (pq.getId() == sessionId) {
           if (tc.isDebugEnabled()) SibTr.debug(this, tc, "Found match: ", pq);
           empty = false;
           break;
         }
       }
  
       if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isQueueEmptyForSessionId", Boolean.valueOf(empty));
       return empty;
     }
docs: Checks whether there are ANY messages available for the supplied sessionId on the underlying queue.
  Note that this provides different function from the isEmpty(short) method.
  
  @param sessionId
  @return true if empty, false otherwise.