code: public void cache(K name, V data) {
  
  		if ( data == null){
  			return;
  		}
  		if ( serializedCache != null){
  
  
  			logger.debug("Caching {}  {}", name, data);
  
  			serializedCache.put(name,data);
  
  
  			// every 1000 objects we are writing to disk
  			if ( serializedCache.keySet().size() % 1000 == 0 ) {
  
  				flushCache();
  
  			}
  
  		}
  
  
  	}
docs: This will not cache null values.
  Null means not cached yet.
  If you want to cache "no data exists" use e.g. empty collections to represent this.
  
  @param name
  @param data