public static XrayVersion GetVersion()
 {
     try
     {
         HttpResponseMessage responseFromXray = xray.PerformGetRequest("system/version");
         string resultFromXray = parseXrayResponse(responseFromXray);
         return(XrayUtil.LoadXrayVersion(resultFromXray));
     }
     catch (Exception e)
     {
         throw new IOException(e.Message, e);
     }
 }
        public static async Task <XrayVersion> GetVersionAsync()
        {
            try
            {
                HttpResponseMessage responseFromXray = await xray.PerformGetRequestAsync("system/version");

                string resultFromXray = await parseXrayResponseAsync(responseFromXray);

                return(XrayUtil.LoadXrayVersion(resultFromXray));
            }
            catch (Exception e)
            {
                throw new IOException(e.Message, e);
            }
        }