code: @Override
  	public void onAttach(Context context) {
  		super.onAttach(context);
  		try {
  			if (retainedChildFragmentManager != null) {
  				//Use the retained child fragment manager after rotation
  
  				//Set the retained ChildFragmentManager to the field
  				Field field = Fragment.class.getDeclaredField("mChildFragmentManager");
  				field.setAccessible(true);
  				field.set(this, retainedChildFragmentManager);
  
  				updateHosts(getFragmentManager(), (FragmentHostCallback) hostField.get(getFragmentManager()));
  			} else {
  				//If the child fragment manager has not been retained yet
  				retainedChildFragmentManager = getChildFragmentManager();
  			}
  		} catch (Exception e) {
  			ApptentiveLog.e(e, "Exception in %s.onAttach()", getClass().getSimpleName());
  			logException(e);
  		}
  
  	}
docs: /* Guarded