// If we don't want structure cache entries to expire, we need to configure infinite lifespan and keep original
// lifespan value, which will be send to tree api
if (skipExpirationOfStructureCacheEntries) {
cacheLifespanOfLeafNodes = configFromXml.expiration().lifespan();
configBuilder.expiration().lifespan(-1);
log.debug("Expiration of structure cache entries is disabled. Leaf nodes will use expiration "
+ cacheLifespanOfLeafNodes);
}
cacheManager = new DefaultCacheManager(globalConfigBuilder.build(), configBuilder.build(), true);