@Override
    public List<ManifestSnippet> handle(ServiceSpec serviceSpec, ManifestContext manifestContext) throws HyscaleException {
        if (!ManifestPredicates.getAgentsPredicate().test(serviceSpec)) {
            logger.debug("Agents found to be empty while processing service spec data.");
            return Collections.emptyList();
        }
        List<ManifestSnippet> manifestSnippetList = new ArrayList<>();
        try {
            for (AgentBuilder agentBuilder : agentBuilders) {
                manifestSnippetList.addAll(agentBuilder.build(manifestContext, serviceSpec));
            }
        } catch (JsonProcessingException e) {
            logger.error("Json Processing Exception", e);
        }
        return manifestSnippetList;
    }
Plugin for Agent/Sidecar
<p>
This class is responsible for generating manifests based on Agents
context from service spec.
</p>

@author Nishanth Panthangi
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/plugins/AgentHandler.java