UIViewRoot uiViewRoot = null;
if (state != null) {
Object[] stateArray = (Object[])state;
TreeStructureManager tsm = new TreeStructureManager();
uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);
if (uiViewRoot != null) {
uiViewRoot.processRestoreState(facesContext, stateArray[1]);
}
}