This is brittle. Maybe better to make this bean ApplicationContextAware and ensure that the event context is the same as the bean's context.