Description
Doing some perf tests, I notice some methods in DefaultViewHandlerSupport and DefaultRestoreViewSupport are called multiple times, but always return the same value over and over, because they are based on initialization params, which does not change over application lifetime.
The solution is do some small changes over these two classes, passing FacesContext as constructor and calculating those values only the first time those classes are created.