protected String getTargetPath(Node node) throws RepositoryException {
        String path = node.getPath();
        return "/".equals(path) ? null : path;
    }
protected String getTargetPath ( Node node ) throws RepositoryException { String path = node . getPath ( ) ; return "/" . equals ( path ) ? null : path ; }
returns 'null' if the target node traversal should ends (extension hook)