Generate nonce and send the message in a synchronized block
Generate nonce before the message is created.
Add tests
remove call on System.out
HttpStatusIOException: include http status code in message