}
// Read response into DOM structure
try {
log.debug("readXRDS - parsing input stream");
DOMParser domParser = DOMUtils.getDOMParser();
domParser.parse(new InputSource(in));
Document doc = domParser.getDocument();
Element element = doc.getDocumentElement();
log.debug("readXRDS - successfully read XML document into DOM");
xrds = new XRDS(element, true);
log.debug("readXRDS - successfully parsed XRDS document");
} catch (IOException e) {