throw AmbariApiException.CANNOT_CONNECT_AMBARI_SERVER(e);
}
String stackComponentsJson = handleAmbariResponse(response);
logger.debug("Response of component list of service from ambari server:");
logger.debug(stackComponentsJson);
ApiStackComponentList apiServiceComponents =
ApiUtils.jsonToObject(ApiStackComponentList.class,
stackComponentsJson);
return apiServiceComponents;
}