class EntityOwnershipListenerSupport extends EntityOwnershipChangePublisher {

    @Override
    void notifyEntityOwnershipListeners(final DOMEntity entity, final boolean wasOwner, final boolean isOwner,
            final boolean hasOwner) {
        listenerLock.readLock().lock();
        try {
            Collection<DOMEntityOwnershipListener> listeners = entityTypeListenerMap.get(entity.getType());
            if (!listeners.isEmpty()) {
                notifyListeners(entity, wasOwner, isOwner, hasOwner,
                        listeners.stream().map(listenerActorMap::get).collect(Collectors.toList()));
            }
        } finally {
            listenerLock.readLock().unlock();
        }
    }

      EntityOwnershipListenerSupport(final ActorContext actorContext, final String logId);

}