more generic approach to Class types in messages