public TestInstanceInfo getTestInstance(long testInstanceId)
      throws Exception
   {
      TestInstanceInfo testInstance = null;
      QcRequest qcRequest = new QcRequest(QcConstants.QC_ENDPOINT_URL
               + "/test-instance/" + testInstanceId);
      try {
         XMLConfiguration testInstanceData = restClient.get(qcRequest);
         testInstance = QcXmlConfigUtil.getTestInstanceInfo(testInstanceData);
      } catch (NotFound notFound) {
         throw new TestInstanceNotFound("No test instance is found for Id #"
                  + testInstanceId);
      }
      return testInstance;
   }