public NodeAffiliate addPublisher(JID jid) {
        return addAffiliation(jid, NodeAffiliate.Affiliation.publisher);
    }
Adds a new affiliation or updates an existing affiliation of the specified entity JID
to become a node publisher.

@param jid the JID of the user being added as a node publisher.
@return the newly created or modified affiliation to the node.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java