}
private void invokeGreeter(GreeterService svc) {
Map<GreetingPhrase, String> result = svc.greetMe("OSGi");
for (Map.Entry<GreetingPhrase, String> e : result.entrySet()) {
GreetingPhrase key = e.getKey();
invocationResult.append(key.getPhrase());
invocationResult.append(e.getValue());
}
Hashtable<String, Object> props = new Hashtable<String, Object>();
props.put("result", invocationResult.toString());