con.remove(resource,null,null);
con.add(entry.getTriples());
con.commit();
} catch(RepositoryException ex) {
con.rollback();
} finally {
con.close();
}
} catch (IOException | RepositoryException e) {
log.error("could not store cache entry for {}: {}", resource.stringValue(), e.getMessage());