713714715716717718719720721722723
ServiceReference<MetricsProvider> service = findService( MetricsProvider.class ); metrics = service.get(); } catch( NoSuchServiceException e ) { metrics = new MetricsProviderAdapter(); } } } return metrics; }