// If not, this method must call calculateLocale() and calculateRenderKitId(), and store the results
// as the values of the locale and renderKitId, proeprties, respectively, of the newly created
// UIViewRoot.
ViewHandler handler = application.getViewHandler();
newViewRoot.setLocale(handler.calculateLocale(context));
newViewRoot.setRenderKitId(handler.calculateRenderKitId(context));
}
else
{
// If there is an existing UIViewRoot available on the FacesContext, this method must copy its locale
// and renderKitId to this new view root