@Override
    public void initialize( final XMPPServer server )
    {
        super.initialize( server );
        entityCapabilitiesMap = CacheFactory.createLocalCache("Entity Capabilities");
        entityCapabilitiesUserMap = CacheFactory.createLocalCache("Entity Capabilities Users");
        capabilitiesBeingUpdated = new HashMap<>();
        verAttributes = new HashMap<>();
        UserEventDispatcher.addListener( this );
    }
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