Util.checkIdUniqueness(context, viewRoot, new HashSet<String>(viewRoot.getChildCount() << 1));
/*
* Save the component state.
*/
Object state = viewRoot.processSaveState(context);
/*
* Save the tree structure.
*/
List<TreeNode> treeList = new ArrayList<TreeNode>(32);