out.print("   <TD>"+ dr.getDiagnosis().getAssetName() +"</TD>\n");
String dName = "?"; if (dr.getDiagnosis() != null) { dName = dr.getDiagnosis().getAssetName(); } else if (dr.getWrapper() != null) { dName = dr.getWrapper().getAssetName(); } out.print("   <TD>"+ dName +"</TD>\n");
        private boolean emitData(PrintWriter out, boolean useShortName, String nameformat, int refresh, String assetFilter) {                        boolean emittedData = false;            Diagnosis d; //diagnosis            Diagnosis dw; //wrapper            DiagRecord dr;                        Object dv; //store value of diagnosis            Object dwv; //store value of wrapped diagnosis                        Iterator i = diagnoses.iterator();            if (i.hasNext()) {                emittedData = true;            } else { return emittedData; }                        tableHeader(out, refresh, nameformat, assetFilter);            boolean filterAll = false;            if (assetFilter.equals("ALL")) { filterAll = true; }                        //Print out each diagnosis            while (i.hasNext()) {                                //Get diagnosis record                dr = (DiagRecord)i.next();                //Filter if user selected a specific asset, o.w. print all                if (!filterAll) {                    if (!assetFilter.equals(dr.getAssetName())) {                        continue; //skip printing this one out.                    }                }                out.print("<TR>\n");                //Output the asset name                out.print("   <TD>"+ dr.getDiagnosis().getAssetName() +"</TD>\n");                //Output the diagnosis name                out.print("   <TD>"+ dr.getName(useShortName) +"</TD>\n");                // Possible Values List -----------------------                Set pvalues = dr.getPossibleValues();                //Get the diagnosis & wrapped diagnosis                d  = dr.getDiagnosis();                dw = dr.getWrapper();                                String s;                Iterator pv = pvalues.iterator();                if (pvalues.size() >0 ) {                    emitTestActionControl(out, pvalues, d, refresh, nameformat, assetFilter);                                                            } else { //no values                    out.print("   <TD>Values Unknown</TD>\n");    //per unit time                }                                                //Get the diagnosis values                dv =  (d  != null) ?  d.getValue() : "null" ;                dwv = (dw != null) ? dw.getValue() : "null" ;                                //Output their values in living color                out.print("   <TD>"+ dr.colorizeTDValue(dv, dr.getDiagnosisState() ) +"</TD>\n");    //Diagnosis Value                out.print("   <TD>"+ dr.colorizeTDValue(dwv, dr.getWrapperState() ) +"</TD>\n");    //Wrapper Value                //End of row                out.print("</TR>");            }                        tableFooter(out);                                return emittedData;        }