make DomainEvent an alias for AnyRef