@SuppressWarnings("unchecked")
public void setImage(Image image) {
if (image != null) {
try {
CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
Cache cache = cacheFactory.createCache(Collections.emptyMap());
cache.put(value, image);
} catch (CacheException e) {
logger.error(e.getMessage(), e);
}
} else if (value != null) {