title: Configuration in ehcache.xml is not used on created JCache instances
body: <p>I'm trying to use EHCache implementation of JCache (JSR 107), I provide the following configuration file under <code>src\main\resources\ehcache.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true" monitoring="autodetect"  dynamicConfig="true"&gt; 
    &lt;!-- see http://www.ehcache.org/ehcache.xml --&gt;
    &lt;defaultCache 
      maxEntriesLocalHeap="200000" 
      eternal="false"
      timeToIdleSeconds="1200"
      timeToLiveSeconds="1200"&gt;    
      &lt;persistence strategy="localTempSwap"/&gt;
    &lt;/defaultCache&gt;
  &lt;/ehcache&gt;
  </code></pre>
  
  <p>Here is how I create the cache:</p>
  
  <pre><code>String providerName = "org.ehcache.jcache.JCacheCachingProvider";
  CachingProvider cachingProvider = Caching.getCachingProvider(providerName);
  CacheManager cacheManager = cachingProvider.getCacheManager();
  CompleteConfiguration&lt;ComposedKey, Object&gt; config = new MutableConfiguration&lt;ComposedKey, Object&gt;()
      .setTypes(ComposedKey.class, Object.class)
      .setExpiryPolicyFactory(FactoryBuilder.factoryOf(new AccessedExpiryPolicy(new Duration(TimeUnit.MINUTES, 30))))
      .setReadThrough(false)
      .setWriteThrough(false)
      .addCacheEntryListenerConfiguration(
          new MutableCacheEntryListenerConfiguration&lt;ComposedKey, Object&gt;(new CacheListenerManagerJSR107Factory(), null, true,
              true));
  ;
  Cache&lt;ComposedKey, Object&gt; cache = cacheManager.createCache("cache", config);
  </code></pre>
  
  <p>But it seems that the created cache does not use the provided configuration (i.e. under <code>ehcache.xml</code>) as when debugging here is the attributes of the ehcache instance:</p>
  
  <pre><code>[ name = orACJ2rF-1 status = STATUS_ALIVE eternal = false overflowToDisk = false maxEntriesLocalHeap = 1000 maxEntriesLocalDisk = 0 memoryStoreEvictionPolicy = LRU timeToLiveSeconds = 0 timeToIdleSeconds = 0 persistence = none diskExpiryThreadIntervalSeconds = 120 cacheEventListeners: org.ehcache.jcache.JCacheListenerAdapter ; orderedCacheEventListeners:  maxBytesLocalHeap = 0 overflowToOffHeap = false maxBytesLocalOffHeap = 0 maxBytesLocalDisk = 0 pinned = false ]
  </code></pre>