public NodeId checkpoint(SessionInfo sessionInfo, final NodeId nodeId) throws UnsupportedRepositoryOperationException, RepositoryException {
final SessionInfoImpl sInfo = getSessionInfoImpl(sessionInfo);
Version newVersion = (Version) executeWithLocalEvents(new Callable() {
public Object run() throws RepositoryException {
VersionManager vMgr = sInfo.getSession().getWorkspace().getVersionManager();
return vMgr.checkpoint(getNodePath(nodeId, sInfo));
}
}, sInfo);
return idFactory.createNodeId(newVersion, sInfo.getNamePathResolver());
}