# File lib/hammer_cli_import/base.rb, line 540
    def execute
      # Get set up to do logging as soon as reasonably possible
      setup_logging
      # create a storage directory if not exists yet
      Dir.mkdir data_dir unless File.directory? data_dir

      # initialize apipie binding
      self.class.api_init
      load_persistent_maps
      load_cache
      prune_persistent_maps @cache
      # TODO: This big ugly thing might need some cleanup
      begin
        if option_delete?
          info "Deleting from #{option_csv_file}"
          delete option_csv_file
          handle_missing_and_supress 'post_delete' do
            post_delete option_csv_file
          end
        else
          info "Importing from #{option_csv_file}"
          import option_csv_file
          handle_missing_and_supress 'post_import' do
            post_import option_csv_file
          end
        end
        atr_exit
      rescue StandardError, SystemExit, Interrupt => e
        error "Exiting: #{e}"
        info e.backtrace.join "\n"
      end
      save_persistent_maps
      print_summary
      HammerCLI::EX_OK
    end