public async Task <ActionResult> Index(string contentItemId, string format = "xml")
        {
            var request = new TransformalizeRequest(contentItemId, HttpContext.User.Identity.Name)
            {
                Format = format
            };
            var task = await _schemaService.Validate(request);

            if (task.Fails())
            {
                return(task.ActionResult);
            }

            var process = await _schemaService.GetSchemaAsync(task.Process);

            if (format == null)
            {
                return(View("Log", new LogViewModel(_logger.Log, process, task.ContentItem)));
            }
            else
            {
                task.Process.Log.AddRange(_logger.Log);
                task.Process.Connections.Clear();
                return(new ContentResult()
                {
                    Content = process.Serialize(), ContentType = request.ContentType
                });
            }
        }