/** * Gets exception from fault detail. * <p/> * If there is no fault detail then no exception is returned. * If there is no supported exception in fault detail then {@link IntegrationException} is returned. * * @param faultDetail the fault detail * @return exception */ @Nullable private Exception getFaultException(@Nullable SoapFaultDetail faultDetail) { if (faultDetail != null) { DOMSource detailSource = (DOMSource) faultDetail.getSource(); Node detailNode = detailSource.getNode(); QName exName = getExceptionName(detailNode); Exception exception = createException(exName, detailNode); if (exception == null) { // throws common exception with specified exception exception = new IntegrationException(getErrorCodeForException(null), exName.getLocalPart()); } return exception; } return null; }