code: def set(self, param, value):
          
          self._shouldOwn(param)
          try:
              value = param.typeConverter(value)
          except ValueError as e:
              raise ValueError('Invalid param value given for param "%s". %s' % (param.name, e))
          self._paramMap[param] = value
docs: Sets a parameter in the embedded param map.