def used_launched_config_id
      return @used_launched_config_id if @used_launched_config_id
      used_configuration_names = launch_configurations.map {|hsh| hsh[:name] =~ /#{name}/ ? hsh[:name] : nil }.reject {|a| a.nil?}
      used_launched_config_id = used_configuration_names.map {|a| a.gsub(/#{name}/, '').to_i }.reject {|a| a.zero? }.first
      used_launched_config_id = 0 if used_launched_config_id.nil?
      @used_launched_config_id = used_launched_config_id
    end
def used_launched_config_id
      return @used_launched_config_id if @used_launched_config_id
      used_configuration_names = launch_configurations.map {|hsh| hsh[:name] =~ /#{name}/ ? hsh[:name] : nil }.reject {|a| a.nil?}
      used_launched_config_id = used_configuration_names.map {|a| a.gsub(/#{name}/, '').to_i }.reject {|a| a.zero? }.first
      used_launched_config_id = 0 if used_launched_config_id.nil?
      @used_launched_config_id = used_launched_config_id
    end
Compute the next configuration launch id. We'll be cycling through the usage of 0 and 1
 Here we are just looking for which one that is, either zero or 1