MSINM-159: Initial support for saving templates