Source:
<code>private Exception createExceptionFromFault(Fault fault) { String message = fault.getFaultstring(); Detail faultDetail = fault.getDetail(); if (faultDetail == null || faultDetail.getAny().size() == 0) { try { return new SOAPFaultException(SOAPFactory.newInstance().createFault(message, fault.getFaultcode())); } catch (SOAPException e) { throw new RuntimeCamelException(e); } } <START> Object detailObj = faultDetail.getAny().get(0); <END> if (!JAXBIntrospector.isElement(detailObj)) { try { return new SOAPFaultException(SOAPFactory.newInstance().createFault(message, fault.getFaultcode())); } catch (SOAPException e) { throw new RuntimeCamelException(e); } } JAXBElement<?> detailEl = (JAXBElement<?>) detailObj; Class<? extends Exception> exceptionClass = getDataFormat().getElementNameStrategy().findExceptionForFaultName(detailEl.getName()); Constructor<? extends Exception> messageConstructor; Constructor<? extends Exception> constructor; try { Object detail = JAXBIntrospector.getValue(detailEl); try { constructor = exceptionClass.getConstructor(String.class, detail.getClass()); return constructor.newInstance(message, detail); } catch (NoSuchMethodException e) { messageConstructor = exceptionClass.getConstructor(String.class); return messageConstructor.newInstance(message); } } catch (Exception e) { throw new RuntimeCamelException(e); } }</code><technical_language>a tab character here, a spaces policy, run source checks Maven: $ cd components/camel-soap; mvn -Psourcecheck clean verify This is I get now: ... [INFO] --- maven-checkstyle-plugin:2.17:checkstyle (validate) @ camel-soap --- [INFO] Starting audit... [ERROR] /home/zregvart/workspaces/camel/camel/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/Soap11DataFormatAdapter.java:203:1: File contains tab characters (this is instance). [FileTabCharacter] Audit done. ..</technical_language>

Target:
private Exception createExceptionFromFault(Fault fault) { String message = fault.getFaultstring(); Detail faultDetail = fault.getDetail(); if (faultDetail == null || faultDetail.getAny().size() == 0) { try { return new SOAPFaultException(SOAPFactory.newInstance().createFault(message, fault.getFaultcode())); } catch (SOAPException e) { throw new RuntimeCamelException(e); } } Object detailObj = faultDetail.getAny().get(0); if (!(detailObj instanceof JAXBElement)) { try { return new SOAPFaultException(SOAPFactory.newInstance().createFault(message, fault.getFaultcode())); } catch (SOAPException e) { throw new RuntimeCamelException(e); } } JAXBElement<?> detailEl = (JAXBElement<?>) detailObj; Class<? extends Exception> exceptionClass = getDataFormat().getElementNameStrategy().findExceptionForFaultName(detailEl.getName()); Constructor<? extends Exception> messageConstructor; Constructor<? extends Exception> constructor; try { Object detail = JAXBIntrospector.getValue(detailEl); try { constructor = exceptionClass.getConstructor(String.class, detail.getClass()); return constructor.newInstance(message, detail); } catch (NoSuchMethodException e) { messageConstructor = exceptionClass.getConstructor(String.class); return messageConstructor.newInstance(message); } } catch (Exception e) { throw new RuntimeCamelException(e); } }