public void writeTo(GenericHandler<Book> o, Class<?> c, Type t, Annotation[] anns, MediaType m,
MultivaluedMap<String, Object> headers, OutputStream os)
throws IOException, WebApplicationException {
JAXBElementProvider jaxb = new JAXBElementProvider();
jaxb.writeTo(o.getEntity(), c, InjectionUtils.getActualType(t), anns, m, headers, os);
}
}