Song s = new Song();
s.setId(id);
s.setArtist(artist);
s.setTitle(title);
s.setYear(year);
Song2XML converter = new Song2XML();
URI uri = template.postForLocation(url, converter.song2xml(s));
if (uri != null) {
log.info("Location: " + uri.toString());
} else {
log.info("No Location header found");
}