@Override
    public void writeExternal(ObjectOutput out) throws IOException
    {
        super.writeExternal(out);
        ExternalizableUtil.getInstance().writeSerializable(out, jid);
        ExternalizableUtil.getInstance().writeSerializable(out, affiliation);
    }
The new affiliation with a pubsub node.

@return a pubsub node affiliation.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/cluster/AffiliationTask.java