anchor.diff:  %%--------------------------------------------------------------------
   -spec run_certification_flow(Domain :: binary(), Plugin :: module()) -> ok | no_return().
   run_certification_flow(Domain, Plugin) ->
  -    run_certification_flow(Domain, Plugin, get_run_mode()).
  +    run_certification_flow(Domain, Plugin, resolve_run_mode()).
   
   
   %%--------------------------------------------------------------------
  
positive.code: %% Returns run mode, depending on application settings.
  %% @end
  %%--------------------------------------------------------------------
  -spec get_run_mode() -> run_mode().
  get_run_mode() ->
      ModeEnv = onepanel_env:get(letsencrypt_mode, ?APP_NAME, full),
      case {ModeEnv, ?STAGING_DIRECTORY_URL} of
          {production, _} -> production;
  
negative.code:     end,
  
      try
          AccountExists orelse generate_keys(KeysDir),
          ?info("Let's Encrypt ~s run: get endpoints", [CurrentMode]),
          {ok, State2} = get_directory(State),
          ?info("Let's Encrypt ~s run: register account", [CurrentMode]),
  