code: public Object saveState(FacesContext context) {
          if (context == null) {
              throw new NullPointerException();
          }
          if(component.initialStateMarked()) {
              return saveMap(context, deltaMap);
          }
          else {
              return saveMap(context, defaultMap);
          }
      }
docs: One and only implementation of
  save-state - makes all other implementations
  unnecessary.
  
  @param context
  @return the saved state