System.setSecurityManager(new RMISecurityManager());
// Find the service by its interface type
ServiceFinder sf = new ServiceFinder(ConvertService.class);
ConvertService cs = (ConvertService) sf.getObject();
// Now invoke methods on the service object
System.out.println(cs.convert(5));