Allow overriding injectEventSender