System.setSecurityManager(new RMISecurityManager());
// Find the service by its interface type
Entry[] attributes = new Entry[2];
attributes[0] = new Location("4", null, null);
attributes[1] = new Copyright(null, "9/1999", null);
ServiceFinder sf = new ServiceFinder(ConvertService.class, attributes);
ConvertService cs = (ConvertService) sf.getObject();
// Now invoke methods on the service object
System.out.println(cs.convert(5));