public Boolean getStat() throws Exception {
        try {

            for (String s: Naming.list(registry)) {
                if (s.endsWith("/" +name)) {
                    return true;
                }
            }
            return false;
        }
        catch (RemoteException e) {
            Logger.getLogger(getClass()).error("Cannot check RMI availability", e);
            return false;
        }
    }