code: def handle_config_change(self, new_config):
          
          if self.user_handler:
              self.user_handler(self.current_config, new_config)
          self._call_spec_handlers(new_config)
          self.current_config = copy.deepcopy(new_config)
docs: Handle the new configuration.
  
          Args:
              new_config (dict): The new configuration