Create and return a new {@link UIViewRoot} instanceinitialized with information from the argument FacesContext
and viewId
.
If there is an existing ViewRoot
available on the {@link FacesContext}, this method must copy its locale
and renderKitId
to this new view root. If not, this method must call {@link #calculateLocale} and{@link #calculateRenderKitId}, and store the results as the values of the locale
and renderKitId
, proeprties, respectively, of the newly created UIViewRoot
.
@throws NullPointerException if
context
is
null