class JAXBObjectEntityProvider implements EntityProvider<Object> {

    @Override
    public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
        return type.isAnnotationPresent(XmlRootElement.class);
    }

    public  JAXBObjectEntityProvider(@Context Providers providers);

}