MultivaluedMap<String, String> headers, InputStream is)
throws IOException, WebApplicationException {
MessageBodyReader<org.w3c.dom.Document> reader =
providers.getMessageBodyReader(DOM_DOC_CLS, DOM_DOC_CLS, anns, mt);
if (reader == null) {
throw new NotSupportedException();
}
org.w3c.dom.Document domDoc =
reader.readFrom(DOM_DOC_CLS, DOM_DOC_CLS, anns, mt, headers, is);
return new org.dom4j.io.DOMReader().read(domDoc);
}