JAXBContext jaxb = findJAXBContext(type, annotations, mediaType, false); Marshaller marshaller = jaxb.createMarshaller(); setCharset(mediaType, marshaller);
JAXBContext jaxb = findJAXBContext(type, annotations, mediaType, true); Unmarshaller unmarshaller = jaxb.createUnmarshaller(); unmarshaller = decorateUnmarshaller(type, annotations, mediaType, unmarshaller);