MSINM-159: Added message publications to the template mechanism