final Representation entity = request.getEntity();
if (entity == null) {
return null;
}
final MediaType mediaType = entity.getMediaType();
final MessageBodyReader mbr = this.mbrs.getBestReader(this.convToCl,
this.convToGen, this.annotations, mediaType);
if (mbr == null) {
throw new NoMessageBodyReaderException(mediaType, this.convToCl);
}
final MultivaluedMap<String, String> httpHeaders = Util
.getJaxRsHttpHeaders(request);
try {
return mbr.readFrom(this.convToCl, this.convToGen,
this.annotations, mediaType, entity.getCharacterSet(), httpHeaders, entity
.getStream());
} catch (WebApplicationException wae) {
throw wae;
} catch (IOException e) {