viewState.setContext(context);
    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);                MetaObject metaObject = viewState.getMetaObject();        metaObject.setUser(viewState.getUser());        Object object = viewState.getMetaObject().getObject();        viewState.setComponent(RenderKit.getInstance().render(context, object));        viewState.setContext(context);        return viewState.getComponent();    }