class MetricSourceConfig {

    @Bean
    public ServiceListFactoryBean metricSourceServiceListFactoryBean() {
        ServiceListFactoryBean serviceListFactoryBean = new ServiceListFactoryBean();
        serviceListFactoryBean.setServiceType(MetricSource.class);
        return serviceListFactoryBean;
    }

}