getBookAegis(endpointAddress, type, null);
}
private void getBookAegis(String endpointAddress, String type, String mHeader) throws Exception {
WebClient client = WebClient.create(endpointAddress,
Collections.singletonList(new AegisElementProvider()));
if (mHeader != null) {
client = client.header("X-HTTP-Method-Override", mHeader);
}
Book book = client.accept(type).get(Book.class);