code: func RetrieveCollectionConfigPackageFromState(cc common.CollectionCriteria, state State) (*common.CollectionConfigPackage, error) {
  	cb, err := state.GetState("lscc", BuildCollectionKVSKey(cc.Namespace))
  	if err != nil {
  		return nil, errors.WithMessage(err, fmt.Sprintf("error while retrieving collection for collection criteria %#v", cc))
  	}
  	if cb == nil {
  		return nil, NoSuchCollectionError(cc)
  	}
  	conf, err := ParseCollectionConfig(cb)
  	if err != nil {
  		return nil, errors.Wrapf(err, "invalid configuration for collection criteria %#v", cc)
  	}
  	return conf, nil
  }
docs: // RetrieveCollectionConfigPackageFromState retrieves the collection config package from the given key from the given state