String cacheKey = pipelineContext.getOptional(keyKey, String.class);
if (null == cacheKey) {
cacheKey = cacheKeyService.getCacheKey(cacheContext);
}
CacheContainer cc = cacheManager.get(layer, category, cacheKey, CacheContainer.class);
while (null != cc && !cacheContext.equals(cc.getContext())) {
cacheKey = cacheKeyService.makeUnique(cacheKey);
cc = cacheManager.get(layer, category, cacheKey, CacheContainer.class);
}
if (keyKey != null) {
pipelineContext.put(keyKey, cacheKey);