final AbstractTogglePanel abstractTogglePanel = (AbstractTogglePanel) component;
if (abstractTogglePanel.getValue() != null) {
try {
writer.startElement(HtmlConstants.DIV_ELEM, null);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-crl-sl", "class");
DataVisitor visitor = new AbstractTogglePanelItemVisitor(abstractTogglePanel, new AbstractTogglePanelItemVisitor.TabVisitorCallback() {
@Override
public DataVisitResult visit(AbstractTogglePanelItemInterface item)
{
try {
((UIComponent) item).encodeAll(context);