@Override public void remove() throws RepositoryException { getSession().removeItem(getPath()); }
@Override public Node getParent() throws RepositoryException { return (Node)getSession().getItem(ResourceUtil.getParent(this.path)); }
@Override public Item getAncestor(final int depth) throws RepositoryException { if (depth < 0 || depth > getDepth()) { throw new ItemNotFoundException(); } return this.session.getItem(ResourceUtil.getParent(this.path, depth)); }