Retrieving conversation from SQLTracker Store and continuing with the previous conversation

I found a thread where someone was asking something similar and he managed to find a solution. Here is the link . Im just trying to figure out where did he place this peace of code.