ManifestSnippet generateManifest(ServiceMetadata serviceMetadata, LoadBalancer loadBalancer) throws HyscaleException {
        ConfigTemplate gatewayTemplate = templateProvider.get(getTemplateType());
        Map<String, Object> context = getContext(serviceMetadata, loadBalancer);
        if (context == null) {
            return null;
        }
        String yaml = templateResolver.resolveTemplate(gatewayTemplate.getTemplatePath(), context);
        ManifestSnippet snippet = new ManifestSnippet();
        snippet.setKind(getKind());
        snippet.setPath(getPath());
        snippet.setSnippet(yaml);
        return snippet;
    }
This class generates Manifests of Istio resources using the respective template.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/IstioResourcesManifestGenerator.java