code: public List consolidateStreams(int startMode) throws SIResourceException
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.entry(tc, "consolidateStreams");
  
      List<List> sentMsgs = new ArrayList<List>();
  
      StreamSet streamSet = getStreamSet();
  
      //iterate over the non-null streams
      Iterator itr = streamSet.iterator();
  
      List temp = null;
  
      while(itr.hasNext())
      {
        SourceStream stream = (SourceStream) itr.next();
        // Get lsit of the mesages inside the sendWindow on this stream
        // and add this list onto end of sentMsgs list
        temp = stream.restoreStream(startMode);
        if( temp != null)
          sentMsgs.addAll(temp);
  
        // This is done after the restore as it may have been
        // changed by Admin and we need to work towards it as usual
        if( pointTopoint)
          stream.setDefinedSendWindow(messageProcessor.getDefinedSendWindow());
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "consolidateStreams", sentMsgs);
  
      return sentMsgs;
    }
docs: Consolidates the sourceStreams following restart recovery.
  The streams may have scattered tick values derived from persisted
  messages or references.
  @param startMode