protected List<ConsulServer> transformResponse(List<HealthService> healthServices) {
		List<ConsulServer> servers = new ArrayList<>();
		for (HealthService service : healthServices) {
			ConsulServer server = new ConsulServer(service);
			if (server.getMetadata()
					.containsKey(this.properties.getDefaultZoneMetadataName())) {
				server.setZone(server.getMetadata()
						.get(this.properties.getDefaultZoneMetadataName()));
			}
			servers.add(server);
		}
		return servers;
	}
protected List < ConsulServer > transformResponse ( List < HealthService > healthServices ) { List < ConsulServer > servers = new ArrayList < > ( ) ; for ( HealthService service : healthServices ) { ConsulServer server = new ConsulServer ( service ) ; if ( server . getMetadata ( ) . containsKey ( this . properties . getDefaultZoneMetadataName ( ) ) ) { server . setZone ( server . getMetadata ( ) . get ( this . properties . getDefaultZoneMetadataName ( ) ) ) ; } servers . add ( server ) ; } return servers ; }
Transforms the response from Consul in to a list of usable {@link ConsulServer}s.
@param healthServices the initial list of servers from Consul. Guaranteed to be
non-empty list
@return ConsulServer instances
@see ConsulServer#ConsulServer(HealthService)