/// <summary>
        /// Adds a new version of a file.
        /// </summary>
        private static void AddNewFileVersion()
        {
            Publisher publisher = GetPublisher();

            // get the json to send in the request
            string json = System.IO.File.ReadAllText(ConfigurationManager.AppSettings["PathToJsonNewFileRequestBody"]);

            // get the file to send
            byte[] filedata = System.IO.File.ReadAllBytes(ConfigurationManager.AppSettings["PathToNewFile"]);

            Guid id = publisher.AddFileVersion(Guid.Parse(ConfigurationManager.AppSettings["FileId"]), json, filedata,
                                               ConfigurationManager.AppSettings["UploadedFileName"]);

            Console.WriteLine("Request Identifier is " + id);
        }