}
System.out.println("codebase: " + System.getProperty("java.rmi.server.codebase"));
String serverAddress = InetAddress.getLocalHost().getHostAddress();
System.setProperty("java.rmi.server.hostname", serverAddress);
SmartCardTaskProcessor stub = (SmartCardTaskProcessor) UnicastRemoteObject.exportObject(engine, 0);
Registry registry = LocateRegistry.getRegistry();
boolean rmiregistryFound=true;
try{
//list bounded name in this registry: if rmiregistry is not running, this will throw an exception