class DiscoveryListenerExecutor {
    @Autowired
    private List<DiscoveryListener> discoveryListenerList;

    public void onGetInstances(String serviceId, List<ServiceInstance> instances) {<FILL_FUNCTION_BODY>}

    public void onGetServices(List<String> services) {
        for (DiscoveryListener discoveryListener : discoveryListenerList) {
            discoveryListener.onGetServices(services);
        }
    }
}

        for (DiscoveryListener discoveryListener : discoveryListenerList) {
            discoveryListener.onGetInstances(serviceId, instances);
        }
    
<no_super_class>