@Provides
@ServiceType("discovery")
synchronized public HttpServiceBalancerImpl getHttpServiceBalancerImpl(ReportCollectionFactory reportCollectionFactory)
{
if (discoveryBalancer == null) {
String name = new ObjectNameBuilder(HttpServiceBalancerStats.class.getPackage().getName())
.withProperty("type", "ServiceClient")
.withProperty("serviceType", "discovery")
.build();
discoveryBalancer = new HttpServiceBalancerImpl("discovery", reportCollectionFactory.createReportCollection(HttpServiceBalancerStats.class, name));
}