Cache rcache = cacheManager.getCache("runCache");
if (rcache != null) {
BlockingCache cache = new BlockingCache(rcache);
HashCodeCacheKeyGenerator keygen = new HashCodeCacheKeyGenerator();
for (Run run : runs) {
Long cachekey = keygen.generateKey(run);
cache.remove(cachekey);
cache.put(new Element(cachekey, run));
}
}
}