UIViewRoot viewRoot = facesContext.getViewRoot();
if (viewRoot.isTransient()) {
return null;
}
Object serializedComponentStates = viewRoot.processSaveState(facesContext);
//Locale is a state attribute of UIViewRoot and need not be saved explicitly
if (log.isTraceEnabled()) log.trace("Exiting getComponentStateToSave");
return serializedComponentStates;
}