+con #3669 Possibility to define routing logic in DistributedPubSub

* Serialization check in contrib