Support creation of a domain event with a payload.