in src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java [660:681]
public void checkout(String path) {
Node node;
try {
node = (Node) session.getItem(path);
if (!node.isNodeType("mix:versionable")) {
throw new VersionException("The object " + path + "is not versionable");
}
getVersionManager().checkout(path);
} catch (ClassCastException cce) {
throw new ObjectContentManagerException("Cannot retrieve an object from a property path " + path);
} catch (PathNotFoundException pnfe) {
throw new ObjectContentManagerException("Cannot retrieve an object at path " + path, pnfe);
} catch (UnsupportedRepositoryOperationException uroe) {
throw new VersionException("Cannot checkout unversionable node at path " + path, uroe);
} catch (LockException le) {
throw new VersionException("Cannot checkout locked node at path " + path, le);
} catch (javax.jcr.RepositoryException e) {
throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Impossible to checkout the object " + path, e);
}
}