public static final void writeXML(Object _response, HttpServletResponse _httpResponse) throws MarshalException, ValidationException, IOException, MappingException {
_httpResponse.addHeader("Content-Type", "application/xml");
StringWriter writer = new StringWriter();
Marshaller marshaller = new Marshaller(writer);
marshaller.setMapping(MAPPING);
marshaller.marshal(_response);
if (LOG.isDebugEnabled()) {
LOG.debug("Writing XML [" + writer.toString() + "]");
}
_httpResponse.getWriter().write(writer.toString());
}