replace the context property with a session property in the VoteEvent class