String contentType = connection.getContentType();
if (contentType.equals("text/html")) {
// must be an HTML formatted error message from the server
HTMLQueryResultHandler handler = getHTMLQueryResultHandler();
if (handler != null) {
handler.displayHTMLPage(url);
throw new RuntimeException("Error reading catalog config file URL: " + url.toString());
}
}
_load(connection.getInputStream());
}