Added missing method buildMasterTemplateName()