creation of emitter changed according to change of eep api

There is java.lang.RuntimeException on application start caused by using the old API of EEP. This pull request fixes it.