code: def _resolve_parameters(parameters, blueprint):
      
      params = {}
      param_defs = blueprint.get_parameter_definitions()
  
      for key, value in parameters.items():
          if key not in param_defs:
              logger.debug("Blueprint %s does not use parameter %s.",
                           blueprint.name, key)
              continue
          if value is None:
              logger.debug("Got None value for parameter %s, not submitting it "
                           "to cloudformation, default value should be used.",
                           key)
              continue
          if isinstance(value, bool):
              logger.debug("Converting parameter %s boolean \"%s\" to string.",
                           key, value)
              value = str(value).lower()
          params[key] = value
      return params
docs: Resolves CloudFormation Parameters for a given blueprint.
  
      Given a list of parameters, handles:
          - discard any parameters that the blueprint does not use
          - discard any empty values
          - convert booleans to strings suitable for CloudFormation
  
      Args:
          parameters (dict): A dictionary of parameters provided by the
              stack definition
          blueprint (:class:`stacker.blueprint.base.Blueprint`): A Blueprint
              object that is having the parameters applied to it.
  
      Returns:
          dict: The resolved parameters.