registry = SFSecurity.createRegistry(registryPort);
registry = SFSecurity.createRegistry(registryPort,registryBindAddr);
    public synchronized void setRootProcessCompound(ProcessCompound c)        throws SmartFrogException, RemoteException {        registryPort = getRegistryPort(c);        try {            if (registry==null) {                registry = SFSecurity.createRegistry(registryPort);            }            //registry.bind(defaultName, c);            /**             * Uses a new thread to bind/unbind the register. Otherwise, since             * the stack typically involves an RMI call, the register             *  will not let us do the unbind/bind (no remote modifications allowed)             *             */             AsyncResetProcessCompound depThr = new AsyncResetProcessCompound(c, true);             depThr.start();             // It holds the lock on SFProcess.class until the thread terminates             depThr.join();             // it re-throws exceptions in the thread here...             depThr.getProcessCompound();        } catch (Throwable t) {            if (t instanceof java.rmi.server.ExportException){                throw new SmartFrogRuntimeException ( MessageUtil.formatMessage(MSG_ERR_SF_RUNNING) , t);            }            throw SmartFrogRuntimeException.forward(t);        }    }