ServerVersion sv = new ServerVersion(rs.getXDODSServer());
String svString = odh.getXDODSServerVersion(); ServerVersion sv = new ServerVersion(svString);
    static void sendASCII(PrintWriter pw,                          ReqState rs,                          InputStream is)            throws DODSException, ParseException, IOException {        if (Debug.isSet("showResponse"))            System.out.println(" Flow in sendASCII()");        ServerVersion sv = new ServerVersion(rs.getXDODSServer());        if (Debug.isSet("asciiResponse")) {            System.out.println("    Major Server Version: " + sv.getMajor());            System.out.println("    Minor Server Version: " + sv.getMinor());        }        DataDDS dds = new DataDDS(sv, new asciiFactory());        dds.parse(new opendap.dap.HeaderInputStream(is));        dds.readData(is, null);        if (Debug.isSet("asciiResponse")) System.out.println(" ASCII DDS: ");        if (Debug.isSet("asciiResponse")) dds.print(System.out);        PrintWriter pwDebug = new PrintWriter(System.out);        //pw.println("<pre>");        dds.print(pw);        pw.println("---------------------------------------------");        Enumeration e = dds.getVariables();        while (e.hasMoreElements()) {            BaseType bt = (BaseType) e.nextElement();            if (Debug.isSet("asciiResponse")) ((toASCII) bt).toASCII(pwDebug, true, null, true);            //bt.toASCII(pw,addName,getNAme(),true);            ((toASCII) bt).toASCII(pw, true, null, true);        }        //pw.println("</pre>");        pw.flush();        if (Debug.isSet("asciiResponse")) pwDebug.flush();        if (Debug.isSet("asciiResponse")) System.out.println(" dodsASCII done");    }