* @author Tristan Tarrant
* @since 7.0
*/
final class SecurityActions {
static void defineConfiguration(final EmbeddedCacheManager cacheManager, final String cacheName, final Configuration configurationOverride) {
DefineConfigurationAction action = new DefineConfigurationAction(cacheManager, cacheName, configurationOverride);
if (System.getSecurityManager() != null) {
AccessController.doPrivileged(action);
} else {
Security.doPrivileged(action);
}