if (metaObject instanceof MetaSlot && viewState.getHiddenSlots().size() > 0) {
if (isHiddenSlot(viewState)) {
    public HtmlComponent restoreComponent(IViewState viewState) throws InstantiationException, IllegalAccessException {        viewState.setPostBack(true);                String layout = viewState.getLayout();        Properties properties = viewState.getProperties();        Class contextClass = viewState.getContextClass();                InputContext context = (InputContext) contextClass.newInstance();        context.setLayout(layout);        context.setProperties(properties);                context.setViewState(viewState);        viewState.setContext(context);        MetaObject metaObject = viewState.getMetaObject();        metaObject.setUser(viewState.getUser());        if (! viewState.isVisible()) {            return new HtmlText();        }                if (metaObject instanceof MetaSlot && viewState.getHiddenSlots().size() > 0) {            viewState.setComponent(new HtmlText());        }        else {            Object object = metaObject.getObject();            viewState.setComponent(RenderKit.getInstance().render(context, object, metaObject.getType()));        }        return viewState.getComponent();    }