private void removeAffiliation(JID jid, NodeAffiliate.Affiliation affiliation) {
        // Get the current affiliation of the specified JID
        NodeAffiliate affiliate = getAffiliate(jid);
        // Check if the current affiliation of the user is the one to remove
        if (affiliate != null && affiliation == affiliate.getAffiliation()) {
            removeAffiliation(affiliate);
        }
    }
Removes the banning to subscribe to the node for the specified entity.

@param jid the JID of the user that is no longer an outcast.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java