assuming you have access to change the source code, print the content of this String "contentXml". you can use System.out and the output will go to servletd_out.log or write it into a tmp file using any java write to file method.