System.out.println("\tStatus : " + response.getStatus());
System.out.println(response.readEntity(String.class));
System.out.println("--- POST new book");
Book book = new Book("The Hitchhiker's Guide to the Galaxy", 12.5F, "Science fiction comedy book", "1-84023-742-2", 354, false);
response = client.target(rootURI).request().post(Entity.entity(book, MediaType.APPLICATION_XML));
System.out.println("\tStatus : " + response.getStatus());
URI bookURI = response.getLocation();
System.out.println("\tLocation : " + bookURI);
book.setId(response.getLocation().toString().split("/")[6]);