code: func NewLifeCycle(installedChaincodes Enumerator) (*Lifecycle, error) {
  	installedCCs, err := installedChaincodes.Enumerate()
  	if err != nil {
  		return nil, errors.Wrap(err, "failed listing installed chaincodes")
  	}
  
  	lc := &Lifecycle{
  		installedCCs:           installedCCs,
  		deployedCCsByChannel:   make(map[string]*chaincode.MetadataMapping),
  		queryCreatorsByChannel: make(map[string]QueryCreator),
  	}
  
  	return lc, nil
  }
docs: // NewLifeCycle creates a new Lifecycle instance