#4 commonize between Xmpp and Xmpp.Tls