} catch (SOAPException e) {
throw new WebServiceException(e);
}
} else if (getBinding() instanceof HTTPBinding) {
HTTPException exception = new HTTPException(HttpURLConnection.HTTP_INTERNAL_ERROR);
exception.initCause(message.getContent(Exception.class));
throw exception;
} else {
throw new WebServiceException(message.getContent(Exception.class));
}
}