CacheWrapper existingCacheWrapper = caches.get(cacheName);
if (existingCacheWrapper != null) {
return null; //signal that the cache was created by someone else
}
c = getConfiguration(cacheName);
if (c.security().authorization().enabled()) {
// Don't even attempt to wire anything if we don't have LIFECYCLE privileges
AuthorizationHelper.checkPermission(globalConfiguration.security(), c.security().authorization(), AuthorizationPermission.LIFECYCLE);
}
createdCacheWrapper = new CacheWrapper();
if (caches.put(cacheName, createdCacheWrapper) != null) {