contentType));
}
T entity = reader.readFrom(type, genericType, null, contentMediaType, getHeaders(), is);
return entity;
} catch (WebApplicationException e) {
throw new ClientRuntimeException(e);
} catch (IOException e) {
throw new ClientRuntimeException(e);
} finally {
RuntimeContextTLS.setRuntimeContext(saved);
consumeContent();
}
}