k1,mahendra | #130 | a common dispatcher to dispatch message based on type.