return Security.doPrivileged(action);
}
}
static GlobalComponentRegistry getCacheGlobalComponentRegistry(final AdvancedCache<?, ?> cache) {
GetCacheGlobalComponentRegistryAction action = new GetCacheGlobalComponentRegistryAction(cache);
if (System.getSecurityManager() != null) {
return AccessController.doPrivileged(action);
} else {
return Security.doPrivileged(action);
}