We can directly call session.getNextTokenOnLine(cursor) here. No need to use "nextCursor".