code: public Object last()
    {
      if (tc.isEntryEnabled()) Tr.entry(tc, "last",this);
  
      Object lastObject = null;
  
      while (hasNext())
      {
        lastObject = next();
      }
  
      if (tc.isEntryEnabled()) Tr.exit(tc, "last",lastObject);
  
      return preprocessResult(lastObject);
    }
docs: <p>
  Directly returns the last object in the LogCursorImpl or null if there are no further
  objects to return. This operation is the logical equivalent of repeatedly
  invoking next() until there are no further objects remaining and then returning
  the last object obtained.
  </p>
  
  <p>
  Once this method has been called, no further objects will be returned from the
  LogCursorImpl.
  </p>
  
  @return Object The last object in the LogCursorImpl.