code: private Document parseSoapFault(Document soapMessage, PrintWriter logger)
              throws Exception {
          String namespace = soapMessage.getDocumentElement().getNamespaceURI();
  
          if (namespace.equals(SOAP_12_NAMESPACE)) {
              parseSoap12Fault(soapMessage, logger);
          } else /* if (namespace.equals(SOAP_11_NAMESPACE)) */{
              parseSoap11Fault(soapMessage, logger);
          }
          return soapMessage;
      }
docs: A method to parse a SOAP fault. It checks the namespace and invoke the
  correct SOAP 1.1 or 1.2 Fault parser.
  
  @param soapMessage
  the SOAP fault message to parse
  
  @param logger
  the PrintWriter to log all results to
  
  @return the parsed document otherwise
  
  @author Simone Gianfranceschi