code: public final AbstractItem next(int fromIndex) throws MessageStoreException
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next( fromIndex)"+fromIndex);
  
          AbstractItem found = null;
          for (int priority = Priorities.HIGHEST_PRIORITY;
               null == found && priority >= Priorities.LOWEST_PRIORITY;
               priority--)
          {
              Subcursor subCursor = _getSubCursor(priority);
              if (null != subCursor)
              {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "Search on subcursor for priority: "+priority);
  
                  if (AbstractItem.NO_LOCK_ID == _lockID)
                  {
                      found = subCursor.next(_allowUnavailableItems,fromIndex);// 673411
                  }
                  else
                  {
                      found = subCursor.next(_lockID,fromIndex); //673411
                  }
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "next( fromIndex)"+fromIndex, found);
          return found;
      }
docs: 673411--starts