Dehydration of aldol

In my book it is written that to dehydrate an aldol the product of aldol condensation is heated in an iodine environment. But what is the role of Iodine here and how does it catalyse the dehydration of the aldol?


