private void handleException(String msg, Exception e, HttpResponse response) {
log.error(msg, e);
try {
AxisEngine engine = new AxisEngine(configurationContext);
msgContext.setProperty(MessageContext.TRANSPORT_OUT, response.getOutputStream());
msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, response.getOutputStream());
MessageContext faultContext = engine.createFaultMessageContext(msgContext, e);
engine.sendFault(faultContext);
} catch (Exception ex) {
response.setHeader(CONTENT_TYPE, TEXT_PLAIN);
OutputStreamWriter out = new OutputStreamWriter(
response.getOutputStream());