Boolean cachedVersion = Boolean.FALSE;
if(cache != null) {// -> cache the representation
try {
start = System.currentTimeMillis();
//return the the cached version
rep = cache.store(rep);
cachedVersion = Boolean.TRUE;
log.debug(" - cached Representation {} in {} ms", id, (System.currentTimeMillis() - start));
} catch (YardException e) {
log.warn(String.format("Unable to cache Represetnation %s in Cache %s! Representation not cached!",
id, siteConfiguration.getCacheId()), e);