Updated getEventDispatcher() to new getEmitter() method