return emittedData;
*/ return false;
      private boolean emitData(PrintWriter out, Vector vector, boolean isOld) {         CostBenefitDiagnosis cbd = null;         boolean emittedData = false;         Iterator i = vector.iterator();          if (i.hasNext()) {              if (isOld) { out.println("<h2>Completed Observations</h2><hr>"); }              emittedData = true;                      }                  while (i.hasNext()) {                        cbd = (CostBenefitDiagnosis)i.next();              String stat = (cbd.getStatus() == null) ? "NONE" : cbd.getStatus();              out.println("<h2><font color=\"#0C15FE\">CostBenefit Diagnosis for "+cbd.getAssetName()+"</font></h2>");              out.println("<p>Status = "+stat);                                            out.print("<p><p><TABLE cellspacing=\"20\">");                out.print("<CAPTION align=left ><font color=\"#891728\">Defenses</font></CAPTION>");                out.print("<TR align=left>");                out.print("   <TH>Defense <sp> </TH>");                            out.print("   <TH>Applicable </TH>");                            out.print("   <TH>Belief </TH>");                            out.print("   <TH>Benefit/Time   </TH>");                            out.print("   <TH>Horizon   </TH>");                            out.print("   <TH>Cost   </TH>");                            out.print("   <TH>Exp_Benefit   </TH>");                            out.print("   <TH>Timeout   </TH>");                            out.print("   <TH>Status   </TH>");                            out.print("   <TH>Outcome [t(a->c)]  </TH>");                            out.print("</TR>");              CostBenefitDiagnosis.DefenseBenefit defenses[] = cbd.getDefenses();              CostBenefitDiagnosis.DefenseBenefit def;              if (defenses != null && defenses.length > 0) {                    for (int j=0; j<defenses.length; j++) {                        def = defenses[j];                        out.print("<TR>");                        String defense = "null";                                                DefaultDefenseTechSpec dts = (DefaultDefenseTechSpec)def.getDefense();                        if (dts != null) {                             defense = def.getDefense().getName();                         }                                                out.print("   <TD>"+defense +"</TD>");                        String appl="unknown";                        if (def.getCondition() != null) { //then assign either applicable or not applicable                            if (def.getCondition().getValue().toString().equalsIgnoreCase("FALSE")) { appl = "No"; }                            else { appl = "Yes"; }                        }                        out.print("   <TD>"+appl+"</TD>");                                                        String believe;                        try {                            believe = "" + nf.parse(nf.format(def.getBelievability()));                         } catch(Exception e) {                            believe = "error";                            logger.warn("Error parsing number: "+def.getBelievability());                        }                        out.print("   <TD>"+believe+"</TD>");                                                            out.print("   <TD>"+dts.t_getBenefit()+"</TD>");    //per unit time                                out.print("   <TD>"+def.getHorizon()+"</TD>");            //horizon                        out.print("   <TD>"+dts.t_getCost()+"</TD>");   //cost                                                         String expBenefit;                         try {                            expBenefit = "" + nf.parse(nf.format(def.getOrigBenefit()));                         } catch(Exception e) {                            expBenefit = "error";                            logger.warn("Error parsing number: "+def.getOrigBenefit());                        }                                                out.print("   <TD>"+expBenefit+"</TD>");  //expected overall benefit                                  out.print("   <TD>"+def.getTimeout()+"</TD>");  //timeout                                  String stat2 = def.getStatus();                        if (stat2 == null) { stat2 = "unknown"; }                        out.print("   <TD>"+stat2+"</TD>");                                String outcome = (def.getOutcome() == null) ? "---" : def.getOutcome();                        long ct = (def.getCondition() != null) ? def.getCondition().getCompletionTime() : 0;                        if (ct > 0) { //then this defense ran & completed, so show its time.                            outcome = outcome + " ["+( ((double)(ct-def.getCondition().getTimestamp()))/1000 )+"]";                        }                        out.print("   <TD>"+outcome+"</TD>");                                out.print("</TR>");                    }                          }              out.print("</TABLE>");              out.print("<hr>");         }                   return emittedData;      }