code: @Override
  	public void afterPropertiesSet() {
  
  		if (this.config.isUseGeneratorCache()) {
  
  			CachedGenerator annotation = getClass().getAnnotation(CachedGenerator.class);
  			if (annotation != null) {
  				useCache = true;
  				name = annotation.name();
  				cacheMappingFileName = annotation.mappingFileName();
  				cacheDirectory = annotation.cacheDirectory();
  				if (!cacheDirectory.endsWith(URL_SEPARATOR)) {
  					cacheDirectory = cacheDirectory + URL_SEPARATOR;
  				}
  				cacheMode = annotation.mode();
  
  				loadCacheMapping();
  
  				// reset cache if invalid
  				if (!isCacheValid()) {
  
  					if (LOGGER.isDebugEnabled()) {
  						LOGGER.debug("Cache of " + getName() + " generator is invalid. Reset cache...");
  					}
  					resetCache();
  				}
  			}
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see net.jawr.web.resource.bundle.generator.
  PostInitializationAwareResourceGenerator#afterPropertiesSet()