code: public void stopStep() {
          final String root = threadContext.getRoot().orElse(null);
          final Optional<String> current = threadContext.getCurrent()
                  .filter(uuid -> !Objects.equals(uuid, root));
          if (!current.isPresent()) {
              LOGGER.error("Could not stop step: no step running");
              return;
          }
          final String uuid = current.get();
          stopStep(uuid);
      }
docs: Stops current running step. Shortcut for {@link #stopStep(String)}.