docs: def resolve(self, key):
          """
          Resolves the requested key to an object instance, raising a KeyError if the key is missing
          """
          registration = self._registrations.get(key)
  
          if registration is None:
              raise KeyError("Unknown key: '{0}'".format(key))
  
          return registration.resolve(self, key)