docs: @SuppressWarnings("unchecked")
    public List<EventSubscriptionEntity> findSignalEventSubscriptionsByEventNameAndTenantId(String eventName, String tenantId) {
      final String query = "selectSignalEventSubscriptionsByEventNameAndTenantId";
  
      Map<String, Object> parameter = new HashMap<String, Object>();
      parameter.put("eventName", eventName);
      parameter.put("tenantId", tenantId);
      Set<EventSubscriptionEntity> eventSubscriptions = new HashSet<EventSubscriptionEntity>( getDbEntityManager().selectList(query, parameter));
  
      // add events created in this command (not visible yet in query)
      for (EventSubscriptionEntity entity : createdSignalSubscriptions) {
        if(eventName.equals(entity.getEventName()) && hasTenantId(entity, tenantId)) {
          eventSubscriptions.add(entity);
        }
      }
      return new ArrayList<EventSubscriptionEntity>(eventSubscriptions);
    }