{
@Override
protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
{
UIStyle style = (UIStyle) component;
startElement(writer, style);
writer.writeAttribute("id", component.getClientId(context), "id");
if (style.getStyleClass() != null)
{
writer.writeAttribute("class", style.getStyleClass(), "styleClass");
}
if (style.getStyle() != null)
{
writer.writeAttribute("style", style.getStyle(), "style");
}
}