public void removePage(TreePath path) {
        Page parent = getPage(path).parent;
        if (parent == null) return;

        if (parent.subPages.remove(path.getLastPathComponent())) {
            notifyListeners(null, null, path.getLastPathComponent());
        }
    }