public void removeListeners( @Nonnull JID entity ) {
        userSpecificCapabilitiesListener.removeAll( entity );
    }
Removes all previously registered event listener for a particular entity, if any were registered.

@param entity The entity for which listeners are to removed.
xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java