package microservices.demo;

import java.net.URI;
import java.util.Arrays;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriComponentsBuilder;

import microservices.demo.model.Card;

@Service
public class CardService {

	private static final Logger logger = LoggerFactory.getLogger(CardService.class);

	public List<Card> getCardsOwnedBy(long userId) {
		RestTemplate restTemplate = new RestTemplate();
		URI targetUri = UriComponentsBuilder.fromUriString("http://localhost:19081").path("/cards")
				.queryParam("userId", userId).build().toUri();
		
		Card[] cards = restTemplate.getForObject(targetUri, Card[].class);
		return Arrays.asList(cards);
	}
}

@@ -96,65 +96,8 @@
 t;%0A%0A
-import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 impo
@@ -330,91 +330,8 @@
  %7B%0A%0A
-%09private static final Logger logger = LoggerFactory.getLogger(CardService.class);%0A%0A
 %09pub

Remove unused logger