public HttpResponseMessage SaveDocument(string ConnectionID, string DocumentName)
        {
            // connect the WebSocketHandler with the ConnectionID
            WebSocketHandler wsHandler = WebSocketHandler.GetInstance(ConnectionID);

            // save the document directly server-side
            wsHandler.SaveText(System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/" + DocumentName),
                               StreamType.WordprocessingML);

            return(new HttpResponseMessage()
            {
                StatusCode = HttpStatusCode.OK
            });
        }