Adjust example to use XmppWriter (as we should be doing).