List<UIComponent> children = uiComponent.getChildren();
result._children = new ArrayList<Component>(children.size());
for (int i = 0; i < childCount; i++) {
UIComponent child = children.get(i);
if (!(child instanceof JsfDeveloperAidLink))
result._children.add(reflect(facesContext, children.get(i)));
}
}
final int facetCount = uiComponent.getFacetCount();
if (facetCount > 0) {
Map<String, UIComponent> facets = uiComponent.getFacets();
result._facets = new HashMap<String, Component>(facets.size());
Set<String> names = facets.keySet();
for (String name : names) {
UIComponent child = facets.get(name);
result._facets.put(name, reflect(facesContext, child));
}
}