174175176177178179180181182183184
private GreeterInfo useService(ServiceReference sref) { GreeterService hs = (GreeterService)bundleContext.getService(sref); assertNotNull(hs); try { return hs.greetMe("Fred"); } catch (Exception ex) { fail("unexpected exception"); } return null; }