}
public static String getUsagePlanName(ServletConfig config,
HttpSession session) throws Exception {
try{
String tenantDomain=(String)session.getAttribute("tenantDomain");
UsagePlanClient client=new UsagePlanClient(config, session);
return client.getUsagePlanName(tenantDomain);
}
catch (Exception e){
String msg = "Failed to get usage plan for tenant";
log.error(msg, e);
throw new Exception(msg, e);