if (renderer != null) {
renderer.prepareRender(facesContext, component);
prepareRendersChildren = renderer.getPrepareRendersChildren();
}
if (prepareRendersChildren) {
renderer.prepareRendersChildren(facesContext, component);
} else {
final Iterator it = component.getFacetsAndChildren();
while (it.hasNext()) {
final UIComponent child = (UIComponent) it.next();
prepareRendererAll(facesContext, child);