XmlUtil.getDocument(new ByteArrayInputStream(documentBytes));
xrds = new XRDS(document.getDocumentElement(), false);
} catch (ParserConfigurationException e) {
throw new FetchException(e);
} catch (SAXException e) {
throw new FetchException(e);
} catch (IOException e) {
throw new FetchException(e);
} catch (URISyntaxException e) {
throw new FetchException(e);
} catch (ParseException e) {
throw new FetchException(e);
}
return new XrdRepresentations(xrds.getFinalXRD(), uri.toASCIIString(),
documentBytes, signature);
}