public JcrNode nodeForPath(BrixNode baseNode, Path path) {
return nodeForPath(baseNode, path.toString());
}
public JcrNode nodeForPath(BrixNode baseNode, String path) {
Path realPath = new Path(SitePlugin.get().toRealWebNodePath(path));
if (realPath.isAbsolute() == false) {
Path base = new Path(baseNode.getPath());
if (!baseNode.isFolder()) {
base = base.parent();
}
realPath = base.append(realPath);
}
String strPath = realPath.toString();
if (baseNode.getSession().itemExists(strPath) == false) {
return null;