config.setEternal(this.eternal);
config.setTimeToLiveSeconds(this.timeToLive);
config.setTimeToIdleSeconds(this.timeToIdle);
PersistenceConfiguration pc = new PersistenceConfiguration();
if(this.diskPersistent)
pc.strategy(PersistenceConfiguration.Strategy.LOCALRESTARTABLE);
else if(this.overflowToDisk)
pc.strategy(PersistenceConfiguration.Strategy.LOCALTEMPSWAP);
else
pc.strategy(PersistenceConfiguration.Strategy.NONE);
config.setDiskExpiryThreadIntervalSeconds(this.diskExpiryThreadIntervalSeconds);
config.setMaxElementsOnDisk(this.maxElementsOnDisk);
if (this.terracottaClustered) {