* @author Tristan Tarrant
* @since 7.0
*/
final class SecurityActions {
static ComponentRegistry getCacheComponentRegistry(final AdvancedCache<?, ?> cache) {
GetCacheComponentRegistryAction action = new GetCacheComponentRegistryAction(cache);
if (System.getSecurityManager() != null) {
return AccessController.doPrivileged(action);
} else {
return Security.doPrivileged(action);
}