public String buildPretty ( ) throws IOException { try { ObjectMapper mapper = new ObjectMapper ( ) ; return mapper . writerWithDefaultPrettyPrinter ( ) . writeValueAsString ( this ) ; } catch ( IOException ex ) { throw ex ; } }
Create a string represenation of the Mail object JSON and pretty print it .