# File lib/rhc/wizard.rb, line 221
    def create_config_stage
      paragraph do
        if File.exists? config.path
          backup = "#{@config.path}.bak"
          FileUtils.cp(config.path, backup)
          FileUtils.rm(config.path)
        end

        say "Saving configuration to #{system_path(config.path)} ... "

        changed = Commander::Command::Options.new(options)
        changed.rhlogin = username
        changed.password = nil
        changed.use_authorization_tokens = options.create_token != false && !changed.token.nil?

        FileUtils.mkdir_p File.dirname(config.path)
        config.save!(changed)
        options.__replace__(changed)

        success "done"
      end

      true
    end