throw AmbariApiException.CANNOT_CONNECT_AMBARI_SERVER(e);
}
String stackVersionsJson = handleAmbariResponse(response);
logger.debug("Response of version list of stack from ambari server:");
logger.debug(stackVersionsJson);
ApiStackVersionList apiStackVersionList =
ApiUtils.jsonToObject(ApiStackVersionList.class, stackVersionsJson);
return apiStackVersionList;
}