Response r = JAXRSUtils.convertFaultToResponse(ex, message);
if (r != null) {
message.removeContent(Exception.class);
message.getInterceptorChain().setFaultObserver(null);
if (message.getContextualProperty(FaultListener.class.getName()) == null) {
message.put(FaultListener.class.getName(), new NoOpFaultListener());
}
createOutMessage(message, r);
Iterator<Interceptor<? extends Message>> iterator = message.getInterceptorChain().iterator();