private Page tryGetPageFromCache(long pageNumber) {
    for (Page page : pagesCache) {
      if (page.getPageNumber() == pageNumber) {
        return page;
      }
    }
    return null;
  }
private Page tryGetPageFromCache(long pageNumber)