public override ITask CreateTask(CloudMediaContext cloudMediaContext, dynamic configuration1, TaskCollection tasks, IEnumerable<IAsset> inputAssets) {
            var processor = cloudMediaContext.GetLatestMediaProcessorByName(MediaProcessorName.WindowsAzureMediaEncoder);
            var configuration = GetXml((CreateThumbnailViewModel)configuration1);
            var task = tasks.AddNew(TaskName, processor, configuration, TaskOptions.ProtectedConfiguration);

            task.InputAssets.AddRange(inputAssets);
            task.OutputAssets.AddNew("Output asset", AssetCreationOptions.None);

            Logger.Information("New CreateThumbnail task '{0}' was created.", task.Name);

            return task;
        }