Moved the staged document save into the DocumentService.