'Read domain specific configuration from database and load drivers.
Domain configurations are stored in the domain-config backend,
so we go through each domain to find those that have a specific config
defined, and for those that do we:
- Create a new config structure, overriding any specific options
defined in the resource backend
- Initialise a new instance of the required driver with this new config'

def _setup_domain_drivers_from_database(self, standard_driver, resource_api):

    for domain in resource_api.list_domains():
        domain_config_options = self.domain_config_api.get_config_with_sensitive_info(domain['id'])
        if domain_config_options:
            self._load_config_from_database(domain['id'], domain_config_options)
