persisting template name and adding name attribute to DeploymentDetailSerialize