code: protected OMVRBTreeEntry<K, V> getLastEntry() {
      OMVRBTreeEntry<K, V> p = root;
      if (p != null)
        while (p.getRight() != null)
          p = p.getRight();
  
      if (p != null)
        pageIndex = p.getSize() - 1;
  
      return p;
    }
docs: Returns the last Entry in the OMVRBTree (according to the OMVRBTree's key-sort function). Returns null if the OMVRBTree is
  empty.