MessageBodyReader mbr = ProviderFactory.getInstance(outMessage).createMessageBodyReader(
cls, type, anns, contentType, outMessage);
if (mbr != null) {
try {
return mbr.readFrom(cls, type, anns, contentType,
new MetadataMap<String, Object>(r.getMetadata(), true, true), inputStream);
} catch (Exception ex) {
reportMessageHandlerProblem("MSG_READER_PROBLEM", cls, contentType, ex, r);
}
} else if (cls == Response.class) {