UIComponent head = findHeadComponent(viewRoot);
if (head != null)
{
writer.startUpdate("javax.faces.ViewHead");
head.encodeAll(_facesContext);
writer.endUpdate();
if (updatedComponents == null)
{
updatedComponents = new ArrayList<UIComponent>();
}
updatedComponents.add(head);