if (cache == null)
{
// We are likely going to cause creation and start of a cache here;
// we don't want to leak the TCCL to cache/jgroups threads, so
// we switch it to our classloader
@SuppressWarnings("unchecked")
ContextClassLoaderSwitcher switcher = (ContextClassLoaderSwitcher) AccessController.doPrivileged(ContextClassLoaderSwitcher.INSTANTIATOR);
ContextClassLoaderSwitcher.SwitchContext switchContext = switcher.getSwitchContext(getClass().getClassLoader());
try
{
if (cacheObjectName == null)
{
CacheManager cm = CacheManagerLocator.getCacheManagerLocator().getCacheManager(null);