Ehcache specific resource management code.