// The span is written out here because the writer needs to see the UIComponent.
ResponseWriter writer = context.getResponseWriter();
writer.startElement("span", node.getUIComponent());
RenderingContext arc = RenderingContext.getCurrentInstance();
FacesContext fContext = context.getFacesContext();
icon.renderIcon(fContext, arc, _getNodeAttributeMap(context, node));
writer.endElement("span");
}
}
}
}