Update TemplateProcessingService.cs