view = (UIViewRoot) internalRestoreTreeStructure((TreeStructComponent)fullState[0]);
if (view != null)
{
context.setViewRoot (view);
view.processRestoreState(context, fullState[1]);
// If the view is restored fully, it is necessary to refresh RequestViewContext, otherwise at
// each ajax request new components associated with @ResourceDependency annotation will be added
// to the tree, making the state bigger without real need.
RequestViewContext.getCurrentInstance(context).