docs: public SIMPIterator getQueuedMessageIterator()
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.entry(tc, "getQueuedMessageIterator");
  
      List<ControlAdapter> messages = new ArrayList<ControlAdapter>();
      
      NonLockingCursor cursor = null;
  
      MessageItem referredItem = null;
      try
      {
        cursor =
          consumerDispatcher.getReferenceStream().newNonLockingCursor(null);
        cursor.allowUnavailableItems();
        MessageItemReference item = (MessageItemReference) cursor.next();
        while(item != null)
        {
          try
          {
            referredItem = (MessageItem)item.getReferredItem();
            if(referredItem != null)
            {
              // force the arrival time to be written to the jsMessage  
              referredItem.forceCurrentMEArrivalTimeToJsMessage();
            }
            
            // It's possible to get a null adapter back 
            ControlAdapter cAdapter = item.getControlAdapter();
            if(cAdapter != null)
              messages.add(cAdapter);
            
            item = (MessageItemReference) cursor.next();
          }
          catch (NotInMessageStore ef)
          {
            // No FFDC code needed
            // The message has already been consumed. Trace the exception but allow processing to continue.
            SibTr.exception(tc, ef);
          }
          catch (MessageStoreException e)
          {
            // FFDC
            FFDCFilter.processException(
              e,
              "com.ibm.ws.sib.processor.runtime.LocalSubscriptionControl.getQueuedMessageIterator",
              "1:275:1.36",
              this);
              
  
            SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
              new Object[] { "com.ibm.ws.sib.processor.runtime.LocalSubscriptionControl.getQueuedMessageIterator", 
                             "1:281:1.36", 
                             SIMPUtils.getStackTrace(e) });
          }        
        }      
      }
      catch (MessageStoreException e)
      {
        // FFDC
        FFDCFilter.processException(
          e,
          "com.ibm.ws.sib.processor.runtime.LocalSubscriptionControl.getQueuedMessageIterator",
          "1:292:1.36",
          this);
          
  
        SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
          new Object[] { "com.ibm.ws.sib.processor.runtime.LocalSubscriptionControl.getQueuedMessageIterator", 
                         "1:298:1.36", 
                         SIMPUtils.getStackTrace(e) });
      }
      finally
      {
        if (cursor != null)
          cursor.finished();
      }
      
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "getQueuedMessageIterator");
        
      return new BasicSIMPIterator(messages.iterator());    
    }