class TransportWorker {
    private static DiscoveryClient discoveryClient = SpringTool.getBean(DiscoveryClient.class);
    private static RestTemplate restTemplate = SpringTool.getBean(RestTemplate.class);

    public static void send(int agentId, JSONObject jsonObject) {<FILL_FUNCTION_BODY>}
}

        List<ServiceInstance> serviceInstanceList = discoveryClient.getInstances("sonic-server-controller");
        for (ServiceInstance i : serviceInstanceList) {
            restTemplate.postForEntity(
                    String.format("http://%s:%d/exchange/send?id=%d", i.getHost(), i.getPort(), agentId),
                    jsonObject, JSONObject.class);
        }
    
<no_super_class>