<ol>

 <li>

 <p class="changed_added_2_2">
 As in the case of restore view on an initial request, the view metadata must be restored and properly handled as
 well. Obtain the <a href="ViewMetadata.html" title="class in jakarta.faces.view"><code>ViewMetadata</code></a> for the current <code>viewId</code>, and from that call
 <a href="ViewMetadata.html#createMetadataView(jakarta.faces.context.FacesContext)"><code>ViewMetadata.createMetadataView(jakarta.faces.context.FacesContext)</code></a>. Store the result