restoring = false;
rehydrating = false;
    public void load() {        super.load();	sb = getServiceBroker();        cancelTimer();        activeAlarms = new Hashtable();        ALLOW_DISCONNECT_SET = new HashSet();        ALLOW_DISCONNECT_SET.add(ALLOW_DISCONNECT);        ALLOW_CONNECT_SET = new HashSet();        ALLOW_CONNECT_SET.add(ALLOW_CONNECT);        NULL_SET = new HashSet();/*        requestToDisconnectAgentDiagnosisIndex = new RequestToDisconnectAgentDiagnosisIndex();        requestToDisconnectNodeDiagnosisIndex = new RequestToDisconnectNodeDiagnosisIndex();        disconnectActionIndex = new DisconnectActionIndex();        blackboard.openTransaction();        agentStatus = new AgentStatus();        blackboard.publishAdd(agentStatus);        nodeStatus = new NodeStatus();        blackboard.publishAdd(nodeStatus);        blackboard.closeTransaction();*/        blackboard.openTransaction();        Collection c;        Iterator iter;        c = blackboard.query(RequestToDisconnectAgentDiagnosisIndex.pred);        iter = c.iterator();        if (iter.hasNext()) {            requestToDisconnectAgentDiagnosisIndex = (RequestToDisconnectAgentDiagnosisIndex)iter.next();        }        else {            requestToDisconnectAgentDiagnosisIndex = new RequestToDisconnectAgentDiagnosisIndex();            blackboard.publishAdd(requestToDisconnectAgentDiagnosisIndex);        }        c = blackboard.query(RequestToDisconnectNodeDiagnosisIndex.pred);        iter = c.iterator();        if (iter.hasNext()) {            requestToDisconnectNodeDiagnosisIndex = (RequestToDisconnectNodeDiagnosisIndex)iter.next();        }        else {            requestToDisconnectNodeDiagnosisIndex = new RequestToDisconnectNodeDiagnosisIndex();            blackboard.publishAdd(requestToDisconnectNodeDiagnosisIndex);        }        c = blackboard.query(DisconnectActionIndex.pred);        iter = c.iterator();        if (iter.hasNext()) {            disconnectActionIndex = (DisconnectActionIndex)iter.next();        }        else {            disconnectActionIndex = new DisconnectActionIndex();            blackboard.publishAdd(disconnectActionIndex);        }                c = blackboard.query(NodeStatus.pred);        iter = c.iterator();        if (iter.hasNext()) {            nodeStatus = (NodeStatus)iter.next();            restoring = true;        }        else {            restoring = false;            nodeStatus = new NodeStatus();            blackboard.publishAdd(nodeStatus);        }//        iter = nodeStatus.values().iterator();//        while (iter.hasNext()) {//            NodeStatusRecord nsr = (NodeStatusRecord//        }        blackboard.closeTransaction();    }