private void DeployLinkBiReport(HttpContext context)
        {
            // Get the full path to the LinkBi definition
            // file from the http request's parameters.
            string fileName = context.Request.Params["FileName"];

            // Create a new LinkBi definition by the file.
            LinkBiDefinition definition = new LinkBiDefinition(
                Global.Core,
                fileName,
                Global.HierarchyFilters[fileName]
                );

            Guid?idServerConnection = null;

            // Check if the report should be deployed to a certain server connection.
            if (context.Request.Params["IdServerConnection"] != null)
            {
                idServerConnection = Guid.Parse(context.Request.Params["IdServerConnection"]);
            }

            bool success = false;

            if (idServerConnection.HasValue)
            {
                success = definition.Deploy(idServerConnection.Value);
            }
            else
            {
                // Deploy the LinkBi definition to all server connections.
                success = definition.Deploy();
            }

            definition.Save();

            if (idServerConnection.HasValue)
            {
                context.Response.Write(idServerConnection.Value.ToString() + "|" + success.ToString().ToLower());
            }
            else
            {
                context.Response.Write(success.ToString().ToLower());
            }
        }