Don't use Ehcache deprecated APIs