# File lib/sinatra/rabbit.rb, line 246
      def generate_documentation
        coll = self
        Rabbit::routes << [:get, "#{Sinatra::UrlForHelper::DEFAULT_URI_PREFIX}/docs/#{@name}"]
        ::Sinatra::Application.get("#{Sinatra::UrlForHelper::DEFAULT_URI_PREFIX}/docs/#{@name}") do
          coll.check_supported(driver)
          @collection = coll
          @operations = coll.operations
          @features = driver.features(coll.name)
          respond_to do |format|
            format.html { haml 'docs/collection''docs/collection' }
            format.xml { haml 'docs/collection''docs/collection' }
          end
        end
      end