在properties里面配置多个
dubbo.registry.address=xxxxxx
dubbo.registry.aaa.address=xxxxxx
在xml里面配置
<dubbo:reference id="xx" interface="xxxx" version="1.0.0" registry="aaa"/>
就会报错 Too much registries found
实际上配置的dubbo.registry.aaa.address=xxxxxx 并不能根据aaa来匹配
![image](https://user-images.githubusercontent.com/54841788/68372350-9d4e9700-017b-11ea-95c9-425b66cce6fe.png)

org.apache.dubbo.config.AbstractInterfaceConfig.convertRegistryIdsToRegistries()
if (((List)tmpRegistries).size() > ids.length) {
                throw new IllegalStateException("Too much registries found, the registries assigned to this service are :" + this.registryIds + ", but got " + ((List)tmpRegistries).size() + " registries!");
            }
是不是应该需要在 tmpRegistries 里面根据 id 取对应的 Registries
}
    public String getScope() {
        return scope;
    }
    public void setScope(String scope) {
        this.scope = scope;
    }
    @Deprecated
    public MetadataReportConfig getMetadataReportConfig() {
        if (metadataReportConfig != null) {
            return metadataReportConfig;
        }
        Collection<MetadataReportConfig> metadataReportConfigs = ApplicationModel.getConfigManager().getMetadataConfigs();
        if (CollectionUtils.isNotEmpty(metadataReportConfigs)) {
            return metadataReportConfigs.iterator().next();
        }
        return null;
    }
    @Deprecated
    public void setMetadataReportConfig(MetadataReportConfig metadataReportConfig) {
        this.metadataReportConfig = metadataReportConfig;
        if (metadataReportConfig != null) {
            ConfigManager configManager = ApplicationModel.getConfigManager();
            Collection<MetadataReportConfig> configs = configManager.getMetadataConfigs();
            if (CollectionUtils.isEmpty(configs)
                    || configs.stream().noneMatch(existed -> existed.equals(metadataReportConfig))) {
                configManager.addMetadataReport(metadataReportConfig);
            }
        }
    }