code: public void updateStep(final Consumer<StepResult> update) {
          final Optional<String> current = threadContext.getCurrent();
          if (!current.isPresent()) {
              LOGGER.error("Could not update step: no step running");
              return;
          }
          final String uuid = current.get();
          updateStep(uuid, update);
      }
docs: Updates current step. Shortcut for {@link #updateStep(String, Consumer)}.
  
  @param update the update function.