// org.infinispan:cache-name=myCustomcache(local),jmx-resource=MvccLockManager
// org.infinispan:cache-name=myCustomcache(local),jmx-resource=TxInterceptor
ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();
configurationBuilder.jmxStatistics().enable();
configurationBuilder.eviction().maxEntries(123);
configurationBuilder.expiration().maxIdle(180000);
cm.defineConfiguration(MY_CUSTOM_CACHE, configurationBuilder.build());
Cache<String,String> cache = cm.getCache(MY_CUSTOM_CACHE);