throw new Exception("Domain is not available to register");
}
RealmService realmService = TenantMgtCoreServiceComponent.getRealmService();
RealmConfiguration realmConfig = realmService.getBootstrapRealmConfiguration();
TenantMgtConfiguration tenantMgtConfiguration = realmService.getTenantMgtConfiguration();
MultiTenantRealmConfigBuilder builder = TenantMgtCoreServiceComponent.
getRealmService().getMultiTenantRealmConfigBuilder();
RealmConfiguration realmConfigToPersist =
builder.getRealmConfigForTenantToPersist(realmConfig, tenantMgtConfiguration,
tenant, -1);