*/
    public void updateDefenseOutcome(CostBenefitDiagnosis cbd, String defenseName, String outcome) {        CostBenefitDiagnosis.DefenseBenefit defenses[] = cbd.getDefenses();        CostBenefitDiagnosis.DefenseBenefit def;                for (int i=0; i<defenses.length; i++) {            def = defenses[i];            if (def.getDefense() != null && def.getDefense().getName().equalsIgnoreCase(defenseName)) {                def.setOutcome(outcome);                break;            }        }    }