HttpSession session) throws Exception {
boolean updated = false;
try{
String tenantDomain=(String)session.getAttribute("tenantDomain");
String usagePlanName=(String)request.getParameter("usage-plan-name");
UsagePlanClient client=new UsagePlanClient(config, session);
updated = client.updateUsagePlan(tenantDomain,usagePlanName);
}
catch (Exception e){
String msg = "Failed to get update usage plan for tenant";
log.error(msg, e);
throw new Exception(msg, e);