/// <summary>
 /// <c>BuildSupportFiles</c> generates (or regenerates) the supporting javascript files and Silverlight DLLs 
 /// for the supplied <c>template</c>
 /// </summary>
 /// <param name="template">An instance of the Template class, for which the supporting javascript files and 
 /// Silverlight DLLs will be generated</param>
 /// <param name="flags">A set of flags to control whether javascript or SilverLight files will be generated, 
 /// as well as whether to build files for templates included with an assemble instruction.</param>
 public void BuildSupportFiles(Template template, HDSupportFilesBuildFlags flags)
 {
     if (template == null)
         throw new ArgumentNullException("template", @"WebService.Services.BuildSupportFiles: the ""template"" parameter passed in was null");
     using (Proxy client = new Proxy(_endPointName))
     {
         string templateId = GetRelativePath(template.GetFullPath());
         string templateKey = template.FileName;
         string templateState = null;
         client.BuildSupportFiles(templateId, templateKey, flags, templateState);
         SafeCloseClient(client, null);
     }
 }