# File lib/deltacloud/drivers/rhevm/rhevm_client.rb, line 98
    def api_version?(major)
      headers = {
        :content_type => 'application/xml',
        :accept => 'application/xml'
      }
      headers.merge!(auth_header)
      result_xml = Nokogiri::XML(RHEVM::client(@api_entrypoint)["/"].get(headers))
      if (result_xml/'api/system_version').empty?
        (result_xml/'/api/product_info/version').first[:major].strip == major
      else
        (result_xml/'/api/system_version').first[:major].strip == major
      end
    end