this.setKey(key);
}
public void process(Exchange exchange) throws Exception {
// Cache the buffer to the specified Cache against the specified key
cacheManager = new DefaultCacheManagerFactory().getInstance();
if (isValid(cacheManager, cacheName, key)) {
cache = cacheManager.getCache(cacheName);
LOG.debug("Replacing Message Body from CacheName {} for key {}", cacheName, key);
exchange.getIn().setHeader(CacheConstants.CACHE_KEY, key);