if (excResponse == null) {
ProviderFactory.getInstance(inMessage).clearThreadLocalProxies();
ClassResourceInfo criRoot =
(ClassResourceInfo)inMessage.getExchange().get(JAXRSUtils.ROOT_RESOURCE_CLASS);
if (criRoot != null) {
criRoot.clearThreadLocalProxies();
}
inMessage.getExchange().put(Message.PROPOGATE_EXCEPTION,
ExceptionUtils.propogateException(inMessage));
throw ex;
}