@Override
    public void destroy()
    {
        UserEventDispatcher.removeListener( this );
        allUserCapabilitiesListeners.clear();
        userSpecificCapabilitiesListener.clear();
    }
Listeners that are invoked when new or changed capabilities for a specific entity are detected.
xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java