+
+ if (log.isDebugEnabled()) {
+ try {
+ DOMSource domSource = new DOMSource(result.getNode());
+ StringWriter stringWriter = new StringWriter();
+ StreamResult streamResult = new StreamResult(stringWriter);
+ copy.transform(domSource, streamResult);
+ log.debug("Unmarshall communication:\n"
+ + stringWriter.toString());
+ IOUtils.closeQuietly(stringWriter);
+ } catch (TransformerException e) {
+ log.warn("Could not log xml source", e);
+ }
+ }