// TODO: Should this be application/xml? See JCR-1621
httpResponse.setContentType(
"text/xml; charset=" + SerializingContentHandler.ENCODING);
httpResponse.setContentLength(out.size());
out.writeTo(httpResponse.getOutputStream());
} catch (ParserConfigurationException e) {
log.error(e.getMessage());
throw new IOException(e.getMessage());
} catch (TransformerException e) {
log.error(e.getMessage());