registryPort = getRegistryPort(c);
String port = System.getProperty(SmartFrogCoreProperty.sfDaemonPort);   if(port != null) { registryPort = Integer.parseInt(port); } else { registryPort = getRegistryPort(c); }
    public void setRootProcessCompound(ProcessCompound c)        throws SmartFrogException, RemoteException {        registryPort = getRegistryPort(c);        try {            Registry reg = SFSecurity.createRegistry(registryPort);            reg.bind(defaultName, c);        } catch (Throwable t) {            if (t instanceof java.rmi.server.ExportException){                throw new SmartFrogRuntimeException ( MessageUtil.formatMessage(MSG_ERR_SF_RUNNING) , t);            }            throw SmartFrogRuntimeException.forward(t);        }    }