code: @Deprecated
      public Object saveView(FacesContext context) {
          Object stateArray[] = null;
  
          if (!context.getAttributes().containsKey(IS_CALLED_FROM_API_CLASS)) {
              SerializedView view = saveSerializedView(context);
              if (null != view) {
                  stateArray = new Object[]{view.getStructure(),
                              view.getState()};
              }
          }
          return stateArray;
      }
docs: <p><span class="changed_deleted_2_2">The functionality of this method
  is now handled by {@link javax.faces.view.StateManagementStrategy#saveView}.
  </span> Return an opaque <code>Object</code> containing sufficient
  information for this same instance to restore the state of the
  current {@link UIViewRoot} on a subsequent request.  The returned
  object must implement <code>java.io.Serializable</code>. If there
  is no state information to be saved, return <code>null</code>
  instead.</p>
  <p/>
  <p>Components may opt out of being included in the serialized view
  by setting their <code>transient</code> property to <code>true</code>.
  This must cause the component itself, as well as all of that component's
  children and facets, to be omitted from the saved  tree structure
  and component state information.</p>
  <p/>
  <p>This method must also enforce the rule that, for components with
  non-null <code>id</code>s, all components that are descendants of the
  same nearest {@link NamingContainer} must have unique identifiers.</p>
  <p/>
  <p>For backwards compatability with existing
  <code>StateManager</code> implementations, the default
  implementation of this method calls {@link #saveSerializedView}
  and creates and returns a two element <code>Object</code> array
  with element zero containing the <code>structure</code> property
  and element one containing the <code>state</code> property of the
  <code>SerializedView</code>.</p>
  
  @param context {@link FacesContext} for the current request
  
  @throws IllegalStateException if more than one component or
  facet within the same {@link NamingContainer} in this view has
  the same non-<code>null</code> component id
  @since 1.2