code: def service_registry(self, sr):
      
      if type(sr) is not EFServiceRegistry:
        raise TypeError("sr value must be type 'EFServiceRegistry'")
      self._service_registry = sr
docs: Sets service registry object in context, doesn't check it
      Args:
        sr: EFServiceRegistry object