def METHOD_NAME(self, key, language, country=None, default=None):
    keys = key.split('.')
    config = self.address_configs.get(language, {})
    if country:
        country_config = config.get('countries', {}).get(country, {})
        if country_config:
            config = country_config
    value = nested_get(config, keys)
    if value is not DoesNotExist:
        return value
    return default