int idx = 0;
for (Iterator it = getChildren().iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();
Object childState = childrenList.get(idx++);
if (childState != null) {
child.processRestoreState(context, childState);
} else {
context.getExternalContext().log("No state found to restore child of component " + getId());
}
}
}