code: protected void beforeRestart(final Throwable reason) {
      // override for specific recovery
  
      logger().log("Default before restart recovery after: " + reason.getMessage(), reason);
  
      lifeCycle.afterStop(this);
    }
docs: The message delivered before the {@code Actor} has been restarted by its supervisor due to an exception.
  Override to implement.
  @param reason the {@code Throwable} cause of the supervision restart