DefenseApplicabilityCondition dc = null; Collection c = blackboard.query(pred); Iterator iter = c.iterator();  while (iter.hasNext()) { dc = (DefenseApplicabilityCondition)iter.next(); if (dc.compareSignature(expandedName, defenseName)) { return dc; } }
    public static DefenseApplicabilityCondition find(String defenseName, String expandedName, BlackboardService blackboard) {        DefenseApplicabilityCondition dc = null;        Collection c = blackboard.query(pred);        Iterator iter = c.iterator();        //if (logger.isDebugEnabled()) logger.debug(new Integer(c.size()).toString());        while (iter.hasNext()) {           dc = (DefenseApplicabilityCondition)iter.next();           if (dc.compareSignature(expandedName, defenseName)) {               return dc;           }        }        return null;    } 