Adding application instance event, processor and listner
Fix s/instanceContext/instance
Fixing null passing instance id