- if (leaveOpened
- && (path.lastIndexOf("/") == 0
- && currNodePath.lastIndexOf("/") == 0 || JcrUtils
- .parentPath(path).equals(
- JcrUtils.parentPath(currNodePath))))
- leaveOpened = JcrUtils.lastPathElement(path).equals(
- JcrUtils.lastPathElement(currNodePath));
+ if (leaveOpened && (path.lastIndexOf("/") == 0 && currNodePath.lastIndexOf("/") == 0
+ || JcrUtils.parentPath(path).equals(JcrUtils.parentPath(currNodePath))))
+ leaveOpened = JcrUtils.lastPathElement(path).equals(JcrUtils.lastPathElement(currNodePath));