code: private String buildConfiguration(Object cache) {
  		final StringBuilder sb = new StringBuilder();
  		// getCacheConfiguration() et getMaxElementsOnDisk() n'existent pas en ehcache 1.2
  		final CacheConfiguration config = ((Ehcache) cache).getCacheConfiguration();
  		sb.append("ehcache [maxElementsInMemory = ").append(config.getMaxElementsInMemory());
  		final boolean overflowToDisk = config.isOverflowToDisk();
  		sb.append(", overflowToDisk = ").append(overflowToDisk);
  		if (overflowToDisk) {
  			sb.append(", maxElementsOnDisk = ").append(config.getMaxElementsOnDisk());
  		}
  		final boolean eternal = config.isEternal();
  		sb.append(", eternal = ").append(eternal);
  		if (!eternal) {
  			sb.append(", timeToLiveSeconds = ").append(config.getTimeToLiveSeconds());
  			sb.append(", timeToIdleSeconds = ").append(config.getTimeToIdleSeconds());
  			sb.append(", memoryStoreEvictionPolicy = ")
  					.append(config.getMemoryStoreEvictionPolicy());
  		}
  		sb.append(", diskPersistent = ").append(config.isDiskPersistent());
  		sb.append(']');
  		return sb.toString();
  	}
docs: otherwise serialization would not work in the collector server or in jenkins scripts