public void onSaveInstanceState(Bundle outState){
  Log.d(TAG,"onSaveInstanceState: " + nesting);
  checkNotNull(outState,"bundle == null");
  Page page=peek();
  savePageState(page);
  outState.putSerializable(STACK_TAG,(Stack)mFactoryStack.clone());
  outState.putBundle(STATE_TAG,(Bundle)mPageStates.clone());
}

public void onSaveInstanceState ( Bundle outState ) { Log . d ( TAG , "onSaveInstanceState: " + nesting ) ; checkNotNull ( outState , "bundle == null" ) ; Page page = peek ( ) ; savePageState ( page ) ; outState . putSerializable ( STACK_TAG , ( Stack ) mFactoryStack . clone ( ) ) ; outState . putBundle ( STATE_TAG , ( Bundle ) mPageStates . clone ( ) ) ; }
saves the pagemanager state ( an ordered stack of pagefactories ) to the provided bundle using the provided tag
