JcrNode jcrNode;
try {
jcrNode = getJcrNode(session, objectId.getValue());
}
catch (CmisObjectNotFoundException e) {
throw new CmisUpdateConflictException(e.getCause().getMessage(), e.getCause());
}
if (!jcrNode.isVersionable()) {
throw new CmisUpdateConflictException("Not a version: " + jcrNode);
}
// checkin
JcrVersion checkedIn = jcrNode.asVersion().checkin(properties, contentStream, checkinComment);
objectId.setValue(checkedIn.getId());