cancelRequestedAlarm(rr);
pendingRequests.remove(rr.getNodeID()); rr.getAlarm().cancel(); if (logger.isDebugEnabled()) logger.debug("Removing RequestedAlarm for: " + rr.getNodeID());
    private boolean denyPermissions(RequestRecord rr) {        cancelRequestedAlarm(rr);        DisconnectDefenseAgentEnabler enabler = DisconnectDefenseAgentEnabler.findOnBlackboard(rr.getNodeID().getType().toString(), rr.getNodeID().getName().toString(), blackboard);        String request = rr.getRequest();        AssetID nodeID = rr.getNodeID();        if (enabler != null) {            enabler.setValue(request.equals(ALLOW_DISCONNECT) ? "DISABLED" : "ENABLED");  // Tell the node it can NOT do what it requested            blackboard.publishChange(enabler);            // change the Diagnosis back to its value before the denied request            Iterator iter = rr.getOriginalDiagnoses().iterator();            while (iter.hasNext()) {                Diagnosis diag = (Diagnosis)iter.next();                try {                    diag.setValue(rr.getRequest().equals(ALLOW_DISCONNECT) ? CONNECTED : DISCONNECTED);                    blackboard.publishChange(diag);                } catch (IllegalValueException e) {                    logger.error("Attempt to set: "+diag.toString()+" with illegal value "+e.toString());                }            }            return true;        }        else {            logger.warn("could not find Enabler for" + rr.dump());            return false;        }     }