private GeneratedSource GenearteProxy(ClassDeclarationSyntax proxy, SourceGeneratorContext <ActorProxySourceGenerator> context)
        {
            try
            {
                var proxyModel = GetModel(proxy, context.GeneratorExecutionContext.Compilation);

                var templateString = ResourceReader.GetResource("ActorProxy.scriban");

                var result = TemplateGenerator.Execute(templateString, proxyModel);

                context.TryLogSourceCode(proxy, result);
                context.ApplyDesignTimeFix(result, proxyModel.ClassName);

                return(new GeneratedSource(result, proxyModel.ClassName));
            }
            catch (Exception ex)
            {
                context.TryLogException(proxy, ex);
                return(context.GenerateErrorSourceCode(ex, proxy));
            }
        }