final Object objValue = toValue(value);
CacheEntry<?, ?> entry = new CacheEntry<Object, Object>(objKey, objValue);
cacheWriter.write(entry);
} catch (Exception e) {
if (!(e instanceof CacheWriterException)) {
throw new CacheWriterException("Exception in CacheWriter during write", e);
} else {
throw (CacheWriterException) e;
}
}
}