public JAXBElement readFrom(Class<JAXBElement> type, Type genericType, Annotation[] anns, MediaType mt, MultivaluedMap<String, String> headers, InputStream is) throws IOException { return super.readFrom(type, genericType, anns, mt, headers, is); } public void writeTo(JAXBElement<?> obj, Class<?> cls, Type genericType, Annotation[] anns,
@Override public BookInfo readFrom(Class<BookInfo> arg0, Type arg1, Annotation[] anns, MediaType mt, MultivaluedMap<String, String> headers, InputStream is) throws IOException, WebApplicationException { Book book = new JAXBElementProvider<Book>().readFrom(Book.class, Book.class, anns, mt, headers, is); return new BookInfo(book); }