HttpSession session) throws Exception {
String tenantDomain = "";
try {
tenantDomain = request.getParameter("activate.domain");
TenantServiceClient serviceClient = new TenantServiceClient(config, session);
serviceClient.deactivateTenant(tenantDomain);
} catch (Exception e) {
String msg = "Failed to deactivate the tenant:" + tenantDomain;
log.error(msg, e);
throw new Exception(msg, e);
}