# File lib/acf/acf_interface.rb, line 239
    def distribution_config_for(origin, comment='', enabled=true, cnames=[], caller_reference=nil, streaming = false, default_root_object=nil)
      rootElement = streaming ? "StreamingDistributionConfig" : "DistributionConfig"
      # join CNAMES
      cnames_str  = ''
      unless cnames.blank?
        cnames.to_a.each { |cname| cnames_str += "\n           <CNAME>#{cname}</CNAME>" }
      end
      caller_reference ||= generate_call_reference
      root_ob          = default_root_object ? "<DefaultRootObject>#{config[:default_root_object]}</DefaultRootObject>" : ""
      body             = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<\#{rootElement} xmlns=\#{xmlns}>\n<Origin>\#{origin}</Origin>\n<CallerReference>\#{caller_reference}</CallerReference>\n\#{cnames_str.lstrip}\n<Comment>\#{AcfInterface::escape(comment.to_s)}</Comment>\n<Enabled>\#{enabled}</Enabled>\n\#{root_ob}\n</\#{rootElement}>\n"
    end