public Widget getWidgetForPath(TreePath path) { Widget result = (Widget) this.pathWidgets.get(path); if (result == null && !this.pathWidgets.containsKey(path)) { result = createWidgetForPath(path); if (result != null) { result.setAttribute("TreePath", path); } this.pathWidgets.put(path, result); } return result; }