private void AssertWithinBounds <R>(R record, PageCursor cursor, string operation) where R : Org.Neo4j.Kernel.impl.store.record.AbstractBaseRecord
 {
     if (cursor.CheckAndClearBoundsFlag())
     {
         fail("Out-of-bounds when " + operation + " record " + record);
     }
 }