BesAPI.getDDS(rs.getDataset(), rs.getConstraintExpression(), Out);
DDS ddx = BesAPI.getDDX(rs.getDataset(), rs.getConstraintExpression()); ddx.print(Out);
    public void sendDDS(HttpServletRequest request,                        HttpServletResponse response,                        ReqState rs)            throws IOException, ServletException {        System.out.println("Flow in doGetDDS()");        if (Debug.isSet("showResponse"))            System.out.println("doGetDDS for dataset: " + rs.getDataset());        response.setContentType("text/plain");        response.setHeader("XDODS-Server", getXDODSServerVersion());        response.setHeader("XOPeNDAP-Server", getXOPeNDAPServerVersion());        response.setHeader("XDAP", getXDAPVersion(request));        response.setHeader("Content-Description", "dods_dds");        // Commented because of a bug in the OPeNDAP C++ stuff...        //response.setHeader("Content-Encoding", "plain");        OutputStream Out = new BufferedOutputStream(response.getOutputStream());        try {            BesAPI.getDDS(rs.getDataset(), rs.getConstraintExpression(), Out);        } catch (DODSException de) {            Util.opendapExceptionHandler(de, response);        } catch (PPTException e) {            DODSException de = new DODSException(e.getMessage() + e.getStackTrace());            Util.opendapExceptionHandler(de, response);        } finally {            Out.flush();        }        System.out.println("Flow returned to doGetDDS()");        response.setStatus(HttpServletResponse.SC_OK);    }