private List<TenantDataBean> getAllActiveTenantList() throws Exception {
// ClusterMgtUtil cm = new ClusterMgtUtil();
List<TenantDataBean> list = new ArrayList<TenantDataBean>();
//This will add current node active tenants list to tenant list
for (Tenant tenant : TenantAxisUtils.getActiveTenants(Util.getConfigurationContextService().getServerConfigContext())) {
TenantDataBean tb = new TenantDataBean();
tb.setDomain(tenant.getDomain());
list.add(tb);
}
//if there are multiple nodes in clusters get active tenants from there as well
for (TenantDataBean tenantDataBean : TenantActivityUtil.getActiveTenantsInCluster()) {
if (TenantActivityUtil.indexOfTenantInList(list, tenantDataBean) < 0) {