Messages are coming formatted to `doWrite` method and I could not find an easy way to find the message type. If you have any ideas. please let me know.