code: public static JawrCacheManager getCacheManager(JawrConfig config, String resourceType) {
  
  		String cacheMgrAttributeName = CACHE_ATTR_PREFIX + resourceType.toUpperCase() + CACHE_ATTR_SUFFIX;
  		JawrCacheManager cacheManager = (JawrCacheManager) config.getContext().getAttribute(cacheMgrAttributeName);
  		if (cacheManager == null) {
  			String cacheManagerClass = config.getProperty(CACHE_PROPERTY_NAME, BasicCacheManager.class.getName());
  			cacheManager = (JawrCacheManager) ClassLoaderResourceUtils.buildObjectInstance(cacheManagerClass,
  					new Object[] { config });
  			config.getContext().setAttribute(cacheMgrAttributeName, cacheManager);
  		}
  		return cacheManager;
  	}
docs: Retrieves the cache manager for a resource type
  
  @param config
  the jawr config
  @param resourceType
  the resource type
  @return the cache manager for a resource type