code: def load_domain_config(self, loaded_config):
          '''
          Loads the domain_config and sets up queue_dict
          @param loaded_config: the yaml loaded config dict from zookeeper
          '''
          self.domain_config = {}
          # vetting process to ensure correct configs
          if loaded_config:
              if 'domains' in loaded_config:
                  for domain in loaded_config['domains']:
                      item = loaded_config['domains'][domain]
                      # check valid
                      if 'window' in item and 'hits' in item:
                          self.logger.debug("Added domain {dom} to loaded config"
                                            .format(dom=domain))
                          self.domain_config[domain] = item
              if 'blacklist' in loaded_config:
                  self.black_domains = loaded_config['blacklist']
  
          self.config_flag = Truf load_domain_config(self, loaded_config):
          '''
          Loads the domain_config and sets up queue_dict
          @param loaded_config: the yaml loaded config dict from zookeeper
          '''
          self.domain_config = {}
          # vetting process to ensure correct configs
          if loaded_config:
              if 'domains' in loaded_config:
                  for domain in loaded_config['domains']:
                      item = loaded_config['domains'][domain]
                      # check valid
                      if 'window' in item and 'hits' in item:
                          self.logger.debug("Added domain {dom} to loaded config"
                                            .format(dom=domain))
                          self.domain_config[domain] = item
              if 'blacklist' in loaded_config:
                  self.black_domains = loaded_config['blacklist']
  
          self.config_flag = True
docs: Loads the domain_config and sets up queue_dict
          @param loaded_config: the yaml loaded config dict from zookeeper