QueryOptionGaeContext gaeCtx = (QueryOptionGaeContext)query.option(QueryOptionGaeContext.ID);
// overrides current cursor with the current iterator cursor
// sets the current cursor (in stateful mode, cursor is always kept for further use)
Cursor cursor = gaeIterator.getCursor();
if(cursor!=null) {
gaeCtx.setCurrentCursor(cursor.toWebSafeString());
}
// keeps track of the offset anyway if not paginating
//QueryOptionOffset offset = (QueryOptionOffset)query.option(QueryOptionOffset.ID);
gaeCtx.realOffset++;