Setting template instance on container.