public Collection<JID> getPublishers() {
        Collection<JID> jids = new ArrayList<>();
        for (NodeAffiliate affiliate : affiliates) {
            if (NodeAffiliate.Affiliation.publisher == affiliate.getAffiliation()) {
                jids.add(affiliate.getJID());
            }
        }
        getLogger().trace("Got {} publisher(s)", jids.size());
        return jids;
    }
Returns a collection with the JID of the enitities with an affiliation of
{@link NodeAffiliate.Affiliation#publisher}. When using the publisher model
{@link org.jivesoftware.openfire.pubsub.models.OpenPublisher} anyone may publish
to the node so this collection may be empty or may not contain the complete list
of publishers. The returned collection can be modified since it represents a snapshot.

@return a collection with the JID of the enitities with an affiliation of publishers.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java