*/
public Version checkpoint(final String absPath) throws RepositoryException {
return perform(new SessionWriteOperation<Version> () {
public Version perform(SessionContext context)
throws RepositoryException {
NodeStateEx state = getNodeState(
absPath,
CHECK_LOCK | CHECK_HOLD | CHECK_PENDING_CHANGES_ON_NODE,
Permission.VERSION_MNGMT);
NodeId baseId = checkoutCheckin(state, true, true, null);
return (Version) session.getNodeById(baseId);