def load_states_xxx( country_key, xxx, name )
    country = Country.find_by_key!( country_key )
    logger.debug "Country #{country.key} >#{country.name} (#{country.code})<"

    reader = create_hash_reader( name )

    reader.each do |key, value|
      state = State.find_by_country_id_and_key!( country.id, key )
      state.send( "#{xxx}=", value )
      state.save!
    end
  end
def load_states_xxx( country_key, xxx, name )
    country = Country.find_by_key!( country_key )
    logger.debug "Country #{country.key} >#{country.name} (#{country.code})<"

    reader = create_hash_reader( name )

    reader.each do |key, value|
      state = State.find_by_country_id_and_key!( country.id, key )
      state.send( "#{xxx}=", value )
      state.save!
    end
  end
use StateAttrReader