new ServiceDiscoveryManager(ldm, new LeaseRenewalManager());
/* Wait no more then 10 seconds to discover the service */
ServiceItem item = sdm.lookup(tmpl, null, 10000);
if(item != null) {
System.out.println("Discovered Hello service");
Hello hello = (Hello)item.service;
System.out.println("Invoking Hello service ...");
String ret = hello.hello("Hello from Client");
System.out.println("Received: "+ret+" from Hello service");
} else {
System.out.println("Hello service not discovered, make sure "+
"service is deployed");
}