docs: public synchronized boolean isEmpty(short sessionId)
     {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty","sessionId="+sessionId);
  
        boolean isEmpty = true;
  
        // If the underlying queue has no items on it, we are undoubtably empty
        if (!isQueueEmpty())
        {
           // If not, check the next item on the queue and see if it belongs to us. If it does and
           // a complete batch is ready - nice
           QueueData data = queue.getFirst();
           if (data.getProxyQueue().getId() == sessionId && batchesReady > 0)
           {
              isEmpty = false;
           }
        }
  
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", ""+isEmpty);
        return isEmpty;
     }