code: public Object saveState(FacesContext context) {
          if (context == null) {
              throw new NullPointerException();
          }
          if (!initialStateMarked()) {
              Object values[] = new Object[1];
              values[0] = validationGroups;
              return values;
          }
          return null;
      }
docs: ----------------------------------------------------- StateHolder Methods