lass in jakarta.faces.context">FacesContext</a>&nbsp;context)</pre>
<div class="block"><p>
 Gets the state of the instance as a <code>Serializable</code> Object.
 </p>

 <p>
 If the class that implements this interface has references to instances that implement StateHolder (such as a
 <code>UIComponent</code> with event handlers, validators, etc.) this method must call the <a href="../../../jakarta/faces/component/StateHolder.html#saveState-jakarta.faces.context.FacesContext-"><code>saveState(jakarta.faces.