private MutablePage getWrittenPage(long alignedAddress) {
        MutablePage currentPage = this.currentPage;
        do {
            final long highPageAddress = currentPage.pageAddress;
            if (alignedAddress == highPageAddress) {
                return currentPage;
            }
            currentPage = currentPage.previousPage;
        } while (currentPage != null);
        return null;
    }
private MutablePage getWrittenPage ( long alignedAddress ) { MutablePage currentPage = this . currentPage ; do { final long highPageAddress = currentPage . pageAddress ; if ( alignedAddress == highPageAddress ) { return currentPage ; } currentPage = currentPage . previousPage ; } while ( currentPage != null ) ; return null ; }
warning: this method is O(N), where N is number of added pages