public static void warnSummary(Element element, String message) {
    if (_isCurrentMajorStep(element)) {
      _causeBodyLoggerElement.setText(message);

      _warnStepLoggerElement(_majorStepLoggerElement);

      _stopMajorStep();
    }

    if (_isCurrentMinorStep(element)) {
      _causeBodyLoggerElement.setText(message);

      _warnStepLoggerElement(_minorStepLoggerElement);

      _containsMinorStepWarning = true;

      _warningCount++;

      _summaryContentContainerLoggerElement.addChildLoggerElement(
          _getSummaryContentLoggerElement());

      _summaryTitleContainerLoggerElement.addChildLoggerElement(
          _getSummaryTitleLoggerElement("WARNING #" + _warningCount));

      _stopMinorStep();
    }
  }
  public static void failSummary(Element element, String message) {
    if (_isCurrentMajorStep(element)) {
      _causeBodyLoggerElement.setText(message);

      _failStepLoggerElement(_majorStepLoggerElement);

      _summaryLogLoggerElement.addChildLoggerElement(_getScreenshotsLoggerElement());

      _stopMajorStep();
    }

    if (_isCurrentMinorStep(element)) {
      _causeBodyLoggerElement.setText(message);

      _failStepLoggerElement(_minorStepLoggerElement);

      _stopMinorStep();
    }
  }
  public static void passSummary(Element element) {
    if (_isCurrentMajorStep(element)) {
      if (_containsMinorStepWarning) {
        _warnStepLoggerElement(_majorStepLoggerElement);

        _containsMinorStepWarning = false;
      } else {
        _passStepLoggerElement(_majorStepLoggerElement);
      }

      _stopMajorStep();
    }

    if (_isCurrentMinorStep(element)) {
      _passStepLoggerElement(_minorStepLoggerElement);

      _stopMinorStep();
    }
  }