CarbonContextHolder currentCarbonContextHolder =
CarbonContextHolder.getCurrentCarbonContextHolder();
try {
currentCarbonContextHolder.startTenantFlow();
currentCarbonContextHolder.setTenantId(MultitenantConstants.SUPER_TENANT_ID);
currentCarbonContextHolder.unloadTenant();
} finally {
currentCarbonContextHolder.endTenantFlow();
}
// ACL keys its loggers off of the ContextClassLoader which prevents GC without calling release.