logger.debug("Published "+threats.size()+" threats to the blackboard.");
if (logger.isDebugEnabled()) logger.debug("Published "+threats.size()+" threats to the blackboard.");
    protected void publishThreats(org.cougaar.core.service.BlackboardService blackboard) {        if (threats == null) {            logger.warn("No threats published the blackboard.");            return;        }        Iterator i = threats.iterator();        while (i.hasNext() ) {            ThreatDescription td = (ThreatDescription)i.next();            //Don't publish if there's no prob. that the threat will occur, or if the causesEvent was not found            if (td.getEventProbability() != null && td.getEventThreatCauses() != null) {                 blackboard.publishAdd(td);            }         }        logger.debug("Published "+threats.size()+" threats to the blackboard.");    }