Change in ThreadController

implemented parseMessage method