emitEventCommon was doing a jsp include of details which ended up getting a wrong event object from the page scope.

Changed to an inline include to avoid that issue.