ActionCallback (TreePath treePath) { NodeDescriptor<?> desc = TreeUtil.getLastUserObject(NodeDescriptor.class, treePath); if (desc == null) { return ActionCallback.REJECTED; } Object element = myBuilder.getTreeStructureElement(desc); ActionCallback result = new ActionCallback(); myBuilder.expand(element, result.createSetDoneRunnable()); return result; }