class DomainStatusUpdater {

  public static Step createFailedStep(CallResponse<?> callResponse, Step next) {
    FailureStatusSource failure = UnrecoverableErrorBuilder.fromFailedCall(callResponse);

    LOGGER.severe(MessageKeys.CALL_FAILED, failure.getMessage(), failure.getReason());
    ApiException apiException = callResponse.getE();
    if (apiException != null) {
      LOGGER.fine(MessageKeys.EXCEPTION, apiException);
    }

    return createFailedStep(failure.getReason(), failure.getMessage(), next);
  }

  private  DomainStatusUpdater();

}