ComputeHostPreferenceResource prefResource = new ComputeHostPreferenceResource();
List<Resource> computePrefList = prefResource.get(AbstractResource.ComputeResourcePreferenceConstants.GATEWAY_ID, gatewayId);
return AppCatalogThriftConversion.getComputeResourcePreferences(computePrefList);
}catch (Exception e) {
logger.error("Error while retrieving compute resource preference...", e);
throw new AppCatalogException(e);
}
}