protected String getWMIError(SOAPFault soapFault) {
    XPathExpression xpath =
        XmlUtils.compileXPath(
            WinRMConstants.XPATH,
            "s:Detail/f:WSManFault/f:Message/f:ProviderFault/f:ExtendedError");
    Element extendedError = XmlUtils.selectElement(xpath, soapFault);

    if (extendedError != null) {
      NodeList descriptionElements = extendedError.getElementsByTagNameNS("*", "Description");

      if (descriptionElements.getLength() != 0) {
        if (!StringUtils.isBlank(descriptionElements.item(0).getTextContent())) {
          return descriptionElements.item(0).getTextContent();
        }
      }
    }

    return null; // No Description, or it's empty
  }