docs: public SIMPIterator getQueuedMessageIterator(int fromIndex, int toIndex, int totalNumberOfMsgsPerPage)
  throws SIMPRuntimeOperationFailedException
  {
  	if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
  	SibTr.entry(tc, "getQueuedMessageIterator(int fromIndex= "+fromIndex+", int toIndex= "+toIndex+", int totalNumberOfMsgsPerPage= "+totalNumberOfMsgsPerPage);
  	List<ControlAdapter> messages = new ArrayList<ControlAdapter>();
  	NonLockingCursor cursor = null;
  	int iCount = fromIndex-1;
  	try
  	{
  	cursor = itemStream.newNonLockingItemCursor(null);
  	cursor.allowUnavailableItems();
  	long totalQueuedMessages=getNumberOfQueuedMessages();
  	MessageItem item=(MessageItem)cursor.next(fromIndex-1);// 673411
  	
  	while(item != null)
  	{			
  			if(iCount >=toIndex || (iCount > totalQueuedMessages)){
  			break;
  			}
  		
  		// force the arrival time to be written to the jsMessage
  		item.forceCurrentMEArrivalTimeToJsMessage();
  		// It's possible to get a null adapter back
  		ControlAdapter cAdapter = item.getControlAdapter();
  		if(cAdapter != null)
  		{
  			if(((iCount >= (fromIndex-1))&& iCount <= toIndex) && messages.size() <= totalNumberOfMsgsPerPage)
  			{
  				messages.add(cAdapter);
  				
  			}
  		}
  		AbstractItem abItem=cursor.next(fromIndex-1);// 673411
  			if(abItem!=null){
  			item = (MessageItem)abItem;
  			}else
  			{
  			if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
        			SibTr.debug(tc," Item retrieved from messagestore is null at index"+iCount);
  			break;
  			}
  		iCount++;
  	}
  
  	
  	}
  	catch (MessageStoreException e)
  	{
  	FFDCFilter.processException(e,"com.ibm.ws.sib.processor.runtime.LocalQueuePoint.getQueuedMessageIterator",
  	"1:263:1.57",	this);
  	SibTr.exception(tc, e);
  	if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
  	SibTr.exit(tc, "getQueuedMessageIterator", e);
  	throw new SIMPRuntimeOperationFailedException(e);
  	}
  	finally
  	{
  	if (cursor != null)
  	cursor.finished();
  	}
  
  	if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
  	SibTr.exit(tc, "getQueuedMessageIterator fromIndex="+fromIndex+" toIndex= "+toIndex+" totalMessagesPerpage= "+totalNumberOfMsgsPerPage);
  
  	return new BasicSIMPIterator(messages.iterator());
  
  }