code: public void restoreState(FacesContext facesContext, Object object) {
          if (facesContext == null) {
              throw new NullPointerException();
          }
          if (object != null) {
              this.targetClass = (Class<? extends Enum>) object;
          }
      }
docs: ----------------------------------------------------------- StateHolder