objectProvider->getObjectByName($objectName); } catch (ObjectNotFoundException) { // Throw this exception for BC. throw new ObjectNotSupportedException(MauticSyncDataExchange::NAME, $objectName); } $event = new InternalObjectOwnerEvent($object, $objectIds); $this->dispatcher->dispatch($event, IntegrationEvents::INTEGRATION_FIND_OWNER_IDS); return $event->getOwners(); } }