*/
private static synchronized EmbeddedCacheManager getUniqueInstance(String regionId,
ConfigurationBuilderHolder holder, final TransactionManager tm)
{
GlobalConfigurationBuilder configBuilder = holder.getGlobalConfigurationBuilder();
GlobalConfiguration gc = configBuilder.build();
ExoContainer container = ExoContainerContext.getCurrentContainer();
// Ensure that the cluster name won't be used between 2 ExoContainers
configBuilder.transport().clusterName(gc.transport().clusterName() + "_" + container.getContext().getName())
.globalJmxStatistics()
.cacheManagerName(gc.globalJmxStatistics().cacheManagerName() + "_" + container.getContext().getName()).
// Configure the MBeanServerLookup
mBeanServerLookup(MBEAN_SERVER_LOOKUP);
EmbeddedCacheManager manager;
gc = configBuilder.build();
String clusterName = gc.transport().clusterName();
if (CACHE_MANAGERS.containsKey(clusterName))
{
CacheManagerInstance cacheManagerInstance = CACHE_MANAGERS.get(clusterName);
cacheManagerInstance.acquire();
manager = cacheManagerInstance.cacheManager;