LENS-167 : Add compile time type checks in event service (Rajat Khandelwal via amareshwari)