code: public void restoreState(FacesContext context, Object state)
      {
          if (state != null)
          {
              //Since pattern is required, if state is null
              //nothing has changed
              this.pattern = (String) state;
          }
      }
docs: {@inheritDoc}