Component nodeComponent = newNodeComponent(NODE_COMPONENT_ID,
(IModel<Object>)item.getDefaultModel());
item.add(nodeComponent);
// add behavior that conditionally adds the "selected" CSS class name
item.add(new AbstractBehavior()
{
private static final long serialVersionUID = 1L;
@Override
public void onComponentTag(Component component, ComponentTag tag)