    # File lib/chef/knife/core/generic_presenter.rb, line 123
            def format_for_display(data)
              if config[:attribute]
                result = {}
                Array(config[:attribute]).each do |nested_value_spec|
                  nested_value = extract_nested_value(data, nested_value_spec)
                  result[nested_value_spec] = nested_value
                end
                result
              elsif config[:run_list]
                data = data.run_list.run_list
                { "run_list" => data }
              elsif config[:environment]
                if data.respond_to?(:chef_environment)
                  {"chef_environment" => data.chef_environment}
                else
                  # this is a place holder for now. Feel free to modify (i.e. add other cases). [nuo]
                  data
                end
              elsif config[:id_only]
                data.respond_to?(:name) ? data.name : data["id"]
              else
                data
              end
            end