/*
    public void updateDefenseStatus(CostBenefitDiagnosis cbd, String defenseName, String status) {        CostBenefitDiagnosis.DefenseBenefit defenses[] = cbd.getDefenses();        CostBenefitDiagnosis.DefenseBenefit def;                boolean found = false;        for (int i=0; i<defenses.length; i++) {            def = defenses[i];            if (def.getDefense() != null && def.getDefense().getName().equalsIgnoreCase(defenseName)) {                def.setStatus(status);                found = true;                break;            }        }                 if (!found) {           logger.debug("No defense "+defenseName+" found to update status to "+status);           }    }