this.expanded = expanded;
if (expanded)
{
FacesContext context = FacesContext.getCurrentInstance();
TreeModel model = getTreeModel(context);
int childCount = model.getChildCount(getUserObject());
for (int i = 0; i < childCount; i++)
{
Object child = model.getChild(getUserObject(), i);
HtmlTreeNode node = createNode(model, child, childCount, i, context);
getChildren().add(node);
}
layout[layout.length - 1] -= OFFSET;
} else