code: @Override
      public void restoreState(final FacesContext context, final Object state)
      {
          if (context == null)
          {
              throw new NullPointerException("context");
          }
  
          if (state != null)
          {
              this.validationGroups = (String) state;
          }
          else
          {
              // When the value is being validated, postSetValidationGroups() sets
              // validationGroups to javax.validation.groups.Default. 
              this.validationGroups = null;
          }
          // Only the String is saved, recalculate the Class[] on state restoration.
          //postSetValidationGroups();
      }
docs: {@inheritDoc}