if (viewRoot == null)
{
throw new ViewHandlerException("Problem in createView", Cause.UNABLE_TO_CREATE_VIEW); //$NON-NLS-1$
}
viewRoot.setViewId(viewId);
final VersionStamp versionStamp = createVersionStamp(facesContext,
viewId);
if (versionStamp == null)
{
throw new ViewHandlerException(new Throwable(
"Bad version stamp detected"), Cause.BAD_VERSION_STAMP); //$NON-NLS-1$