@Override
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
final UITreeIndent indent = (UITreeIndent) component;
final AbstractUITreeNode node = ComponentUtils.findAncestor(indent, AbstractUITreeNode.class);
final AbstractUIData data = ComponentUtils.findAncestor(indent, AbstractUIData.class);
final boolean folder = node.isFolder();
final int level = node.getLevel();
final List<Boolean> junctions = node.getJunctions();
final boolean showRoot = data.isShowRoot();
final boolean showJunctions = indent.isShowJunctions();
final boolean showRootJunction = data.isShowRootJunction();
final boolean expanded = folder && data.getExpandedState().isExpanded(node.getPath());
final boolean showLines = showJunctions && data instanceof UITree; // sheet should not show lines
final boolean showIcons = showJunctions;
final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);