title: Printing a JAXB generated bean
body: <p>I have a JAXB data class which is generated from <code>wsimport</code> and I'd like to print it to the console and/or log. Unfortunately a toString is not generated.</p>
  
  <p>What's the easiest way to print the data object? It doesn't matter whether the output is the original XML or something else, as long as it's readable.</p>
  
  <p>It looks like the class is a valid bean (properly named getters and setters) so anything that works with beans is probably fine too.</p>