code: public static ProcessHandler getDefaultHandler(Logger logger) {
      return LegacyProcessHandler.builder()
          .addStdErrLineListener(logger::lifecycle)
          .addStdOutLineListener(logger::lifecycle)
          .setExitListener(new NonZeroExceptionExitListener())
          .build();
    }
docs: Create a return a new default configured process handler.