docs: protected List<Instance> getInstancesForApp(String serviceId) throws Exception {
  		List<Instance> instances = new ArrayList<>();
  		log.info("Fetching instances for app: " + serviceId);
  		List<ServiceInstance> serviceInstances = discoveryClient.getInstances(serviceId);
  		if (serviceInstances == null || serviceInstances.isEmpty()) {
  			log.warn("DiscoveryClient returned null or empty for service: " + serviceId);
  			return instances;
  		}
  		try {
  			log.info("Received instance list for service: " + serviceId + ", size="
  					+ serviceInstances.size());
  			for (ServiceInstance serviceInstance : serviceInstances) {
  				Instance instance = marshall(serviceInstance);
  				if (instance != null) {
  					instances.add(instance);
  				}
  			}
  		}
  		catch (Exception e) {
  			log.warn("Failed to retrieve instances from DiscoveryClient", e);
  		}
  		return instances;
  	}