docs: protected void closeEhcache(final String alias, final InternalCache<?, ?> ehcache) {
      for (ResourceType<?> resourceType : ehcache.getRuntimeConfiguration().getResourcePools().getResourceTypeSet()) {
        if (resourceType.isPersistable()) {
          ResourcePool resourcePool = ehcache.getRuntimeConfiguration()
              .getResourcePools()
              .getPoolForResource(resourceType);
          if (!resourcePool.isPersistent()) {
            PersistableResourceService persistableResourceService = getPersistableResourceService(resourceType);
            try {
              persistableResourceService.destroy(alias);
            } catch (CachePersistenceException e) {
              LOGGER.warn("Unable to clear persistence space for cache {}", alias, e);
            }
          }
        }
      }
    }