- Session jcrSession = sessionAdapter.getSession(workspace);
- String jcrPath = "/" + relativePath;
- try {
- Node node = jcrSession.getNode(jcrPath);
- return new JcrContent(contentSession, this, node);
- } catch (RepositoryException e) {
- throw new JcrException("Cannot get JCR content '" + jcrPath + ", mounted from '" + mountPath
- + "' with JCR session " + jcrSession, e);
- }