private List<Object> collectPages(List<Object> pages,DataPageMain dpMain){
  try {
    CacheDataPage cacheDataPage=new CacheDataPage(dpMain);
    pages.add(cacheDataPage);
    if (!dpMain._leaf) {
      for (      Entry e : cacheDataPage._extra._entryView) {
        DataPageMain childMain=dpMain.getChildPage(e);
        collectPages(pages,childMain);
      }
    }
  }
 catch (  IOException e) {
    pages.add("DataPage[" + dpMain._pageNumber + "]: <"+ e+ ">");
  }
  return pages;
}

private List < Object > collectPages ( List < Object > pages , DataPageMain dpMain ) { try { CacheDataPage cacheDataPage = new CacheDataPage ( dpMain ) ; pages . add ( cacheDataPage ) ; if ( ! dpMain . _leaf ) { for ( Entry e : cacheDataPage . _extra . _entryView ) { DataPageMain childMain = dpMain . getChildPage ( e ) ; collectPages ( pages , childMain ) ; } } } catch ( IOException e ) { pages . add ( "DataPage[" + dpMain . _pageNumber + "]: <" + e + ">" ) ; } return pages ; }
collects all the cache pages in the cache .
