@Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
    {
        super.readExternal(in);
        jid = (JID) ExternalizableUtil.getInstance().readSerializable(in);
        affiliation = (NodeAffiliate.Affiliation) ExternalizableUtil.getInstance().readSerializable(in);
    }
The new affiliation with a pubsub node.

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