Chicken egg problem. iteration.object is null before creating iteration template.