Trick to avoid hard-coding the class name of EventProducer in the source file. Feel free to revert if it's not ok.