}
String tenantIdStr = request.getParameter("tenant-id");
if (tenantIdStr == null) {
tenantIdStr = "0";
}
return serviceClient.retrieveTenantUsage(yearMonth, Integer.parseInt(tenantIdStr));
} catch (Exception e) {
String msg = "Failed to get tenant usages.";
log.error(msg, e);
throw new UIException(msg, e);
}