CLOUD-252 implemented skeleton of template system