code: public boolean isSavingStateInClient(FacesContext context) {
          if (null != savingStateInClient) {
              return savingStateInClient.booleanValue();
          }
          savingStateInClient = Boolean.FALSE;
  
          String saveStateParam = context.getExternalContext().
                getInitParameter(STATE_SAVING_METHOD_PARAM_NAME);
          if (saveStateParam != null &&
              saveStateParam.equalsIgnoreCase(STATE_SAVING_METHOD_CLIENT)) {
              savingStateInClient = Boolean.TRUE;
          }
          return savingStateInClient.booleanValue();
      }
docs: @return <code>true</code> if and only if the value of the
  <code>ServletContext</code> init parameter named by the value of
  the constant {@link #STATE_SAVING_METHOD_PARAM_NAME} is equal to
  the value of the constant {@link #STATE_SAVING_METHOD_CLIENT}.
  <code>false</code> otherwise.
  
  @throws NullPointerException if <code>context</code> is
  <code>null</code>.