Trace.info("DistributedHashtable.initState()", "inserting " + key +
Trace.info("DistributedHashtable.start()", "inserting " + key +
    public void start(long state_timeout) throws ChannelClosedException, ChannelNotConnectedException {        boolean rc;        if(persistent) {            Trace.info("DistributedHashtable.initState()", "fetching state from database");            try {                persistence_mgr=PersistenceFactory.getInstance().createManager();            }            catch(Throwable ex) {                Trace.error("DistributedHashtable.initState()", "failed creating PersistenceManager, " +                            "turning persistency off. Exception: " + Util.printStackTrace(ex));                persistent=false;            }        }        rc=channel.getState(null, state_timeout);        if(rc)            Trace.info("DistributedHashtable.initState()", "state was retrieved successfully");        else {            Trace.info("DistributedHashtable.initState()", "state could not be retrieved (first member)");            if(persistent) {                Trace.info("DistributedHashtable.initState()", "fetching state from database");                try {                    Map m=persistence_mgr.retrieveAll();                    if(m != null) {                        Map.Entry entry;                        Object key, val;                        for(Iterator it=m.entrySet().iterator(); it.hasNext();) {                            entry=(Map.Entry)it.next();                            key=entry.getKey();                            val=entry.getValue();                            if(Trace.trace)                                Trace.info("DistributedHashtable.initState()", "inserting " + key +                                           " --> " + val);                            put(key, val);  // will replicate key and value                        }                    }                }                catch(Throwable ex) {                    Trace.error("DistributedHashtable.initState()", "failed creating PersistenceManager, " +                                "turning persistency off. Exception: " + Util.printStackTrace(ex));                    persistent=false;                }            }        }    }