code: func RefreshAndRead(mgr Storage) (*states.State, error) {
  	err := mgr.RefreshState()
  	if err != nil {
  		return nil, err
  	}
  	return mgr.State(), nil
  }
docs: // RefreshAndRead refreshes the persistent snapshot in the given state manager
  // and then returns it.
  //
  // This is a wrapper around calling RefreshState and then State on the given
  // manager.