Dispatching an event on pre-deserialization