*
* @param name name of the cache
* @return the cache associated with the name
*/
public Cache getCache(String name) {
Cache cache = chm.get(name);
if (cache == null) {
Ehcache ehcache = cacheManager.getEhcache(name);
if (ehcache == null) {
log.debug("There is no cache registered with name '" + name
+ "' in ehcache.xml. Will create a cache for it.");