EventDetector.eventOccurred should be replaced by EventDetector.getHandler
In practice, all detectors extend AbstractDetector
that declares getHandler.
This was originally done for compatibility when we separated detection from handling, but it was never removed despite several major version were released.
The proper way to handle the event is to use the separate handler.