In order to properly implement CMIS connector (see
MODE-650) for modeshape and include support for creation at right place of sub-types of cmis:folder and cmis:document, connector SPI needs to be updated.
To get an object ID from CMIS repository, object needs to be created first, but to create an object there may be required metadata which needs to be present, so generation of ID is possible only AFTER node get's persisted into external repo.
This differs from current implementation where ID generated before touching external repo.
One idea is to change signature of storeDocument function and return ID of the generated node, so repository then can update internal state with new ID.
See discussion here: