- throw new JcrFsException("Cannot get node from relative path");
- String pathStr = toJcrPath();
- Session session = fs.getSession();
- // TODO synchronize on the session ?
- if (!session.itemExists(pathStr))
- return null;
- return session.getNode(pathStr);
+ throw new JcrFsException("Cannot get a JCR node from a relative path");
+ assert fileStore != null;
+ return fileStore.toNode(path);
+// String pathStr = toJcrPath();
+// Session session = fs.getSession();
+// // TODO synchronize on the session ?
+// if (!session.itemExists(pathStr))
+// return null;
+// return session.getNode(pathStr);