StringBuilder toHash = new StringBuilder(BASE_KEY_LENGTH);
if (context instanceof CacheContextImpl) {
CacheContextImpl cci = (CacheContextImpl) context;
for (Map.Entry<String, Object> entry : cci.entries()) {
md5.Update(entry.getKey(), ENCODING);
md5.Update(":");
if (log.isDebugEnabled()) {
toHash.append(entry.getKey());
toHash.append(":");
}
Object value = entry.getValue();