* @param lang the language of the stanza text-content.
* @param item the payload as XMLElement
* @return the prepared Stanza object.
*/
private Stanza createMessageEventStanza(String nodeName, Entity to, String lang, XMLElement item) {
StanzaBuilder stanzaBuilder = new StanzaBuilder("message", NamespaceURIs.XEP0060_PUBSUB_EVENT);
stanzaBuilder.addAttribute("from", serverJID.getFullQualifiedName());
stanzaBuilder.addAttribute("to", to.getFullQualifiedName());
stanzaBuilder.addAttribute(NamespaceURIs.XML, "lang", lang);
stanzaBuilder.startInnerElement("event");
stanzaBuilder.startInnerElement("items");
stanzaBuilder.addAttribute("node", nodeName);
stanzaBuilder.addPreparedElement(item);
stanzaBuilder.endInnerElement(); // items
stanzaBuilder.endInnerElement(); // event
return stanzaBuilder.build();
}