req.setMethod(XmlRequest.Method.GET);
Lib.net.setupProxy(context, req);
xml = req.execute();
} catch (SSLHandshakeException e) {
throw new BadServerCertificateEx(
"Most likely cause: The thredds catalog "+url+" does not have a "+
"valid certificate. If you feel this is because the server may be "+
"using a test certificate rather than a certificate from a well "+
"known certification authority, then you can add this certificate "+
"to the GeoNetwork keystore using bin/installCert");