public Version checkin(final String absPath, final Calendar created)
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, false, created);
return (Version) session.getNodeById(baseId);