}
public JcrDocument getJcrNode(Node node) throws RepositoryException {
VersionManager versionManager = node.getSession().getWorkspace().getVersionManager();
Version version = versionManager.getBaseVersion(node.getPath());
return new JcrVersion(node, version, typeManager, pathManager, typeHandlerManager);
}