code: public static SoapFault from(org.springframework.ws.soap.SoapFault fault) {
  
          QNameEditor qNameEditor = new QNameEditor();
          qNameEditor.setValue(fault.getFaultCode());
  
          SoapFault soapFault = new SoapFault()
              .faultCode(qNameEditor.getAsText())
              .faultActor(fault.getFaultActorOrRole())
              .faultString(fault.getFaultStringOrReason());
  
          if (fault.getFaultDetail() != null) {
              Iterator<SoapFaultDetailElement> details = fault.getFaultDetail().getDetailEntries();
              while (details.hasNext()) {
                  SoapFaultDetailElement soapFaultDetailElement = details.next();
                  soapFault.addFaultDetail(extractFaultDetail(soapFaultDetailElement));
              }
          }
  
          return soapFault;
      }
docs: Builder method from Spring WS SOAP fault object.
  @param fault
  @return