Tool class using ehcache