private static final String DEFAULT_MENU_SEPARATOR_CLASS = "o_menu_separator";
private static final String DIV_PREFIX = "::separator";
@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
MenuSeparator menuSeparator = (MenuSeparator) component;
ResponseWriter writer = context.getResponseWriter();
writer.startElement("li", menuSeparator);
writeAttribute(writer, "id", menuSeparator.getClientId(context));
writeAttribute(writer, "class", DEFAULT_LIST_ITEM_CLASS);
writer.startElement("span", menuSeparator);
writeAttribute(writer, "id", menuSeparator.getClientId(context) + DIV_PREFIX);
String styleClass = Styles.getCSSClass(context, menuSeparator, menuSeparator.getStyle(), StyleGroup.regularStyleGroup(),
menuSeparator.getStyleClass(), DEFAULT_MENU_SEPARATOR_CLASS);
writeAttribute(writer, "class", styleClass);
Styles.renderStyleClasses(context, menuSeparator);
writer.endElement("span");