Step to reproduce:
Create a CMIS repository connector.
Crawl a content repository with an incremental crawling job.
Update a document in the repository (or change it version).
The CMIS repository connector does not detect the version update.
As a fix, Document::getObjectOfLatestVersion can be used to fetch the latest version.
I have tested this with Alfresco ECM.
I would like to propose the following as a patch.