Collection c = blackboard.query(pred); Collection result = new HashSet(); Iterator iter = c.iterator(); while (iter.hasNext()) { DefenseApplicabilityCondition dc = (DefenseApplicabilityCondition)iter.next(); if (dc.getExpandedName().equals(expandedName)) { result.add(dc); } } return result;
return null;
    public static Collection findCollection(String expandedName, BlackboardService blackboard) {        Collection c = blackboard.query(pred);        Collection result = new HashSet();        Iterator iter = c.iterator();        while (iter.hasNext()) {           DefenseApplicabilityCondition dc = (DefenseApplicabilityCondition)iter.next();           if (dc.getExpandedName().equals(expandedName)) {               result.add(dc);           }        }        return result;    }    