Can you not use the `$tw.utils.dispatchCustomEvent()` helper to create this custom event?