/**
  * TODO: think whether this should be synchronized
  *
  * @param id
  * @throws Exception
  */
 @Override
 public void remove(Job job) throws Exception {
   logger.debug("CACHED_JS: rm " + job.getId());
   String id = job.getId();
   cache.invalidate(id);
   wrappedJobStorage.remove(job);
 }
 /**
  * @param job
  * @throws Exception
  */
 @Override
 public void add(Job job) throws Exception {
   logger.debug("CACHED_JS: add " + job.getId());
   cache.put(job.getId(), Optional.of(job));
 }