public static void evictLevel2Cache(EntityManagerFactory emf) {
Cache cache = HibernateUtils.getCache(emf);
cache.evictEntityRegions();
cache.evictCollectionRegions();
cache.evictDefaultQueryRegion();
cache.evictQueryRegions();
cache.evictNaturalIdRegions();
}
}