class CacheManagerImpl implements CacheManager {

  private static final Logger LOGGER = LoggerFactory.getLogger(CacheManagerImpl.class);

  //private static final String LOCATION_PROPERTIES = "location";

  protected String location = null;

  @SuppressWarnings("rawtypes")
  private TreeCache treeCache = null;

  @SuppressWarnings("unchecked")
  protected void init(String namedCache, String locationFolder) {<FILL_FUNCTION_BODY>}

  public EmbeddedCacheManager getManager() {
    return VendorCacheManager.getInstance().getManager();
  }

  @SuppressWarnings("rawtypes")
  public TreeCache getTreeCache() {
    return treeCache;
  }



}



    try {

      this.location = locationFolder;
      // manager = new DefaultCacheManager(repositoryFileName);

      VendorCacheManager manager = VendorCacheManager.getInstance();

      if (manager == null) {
        LOGGER.error("CacheManager is null");
        return;
      }
      
      TreeCacheFactory f = null;
      
      
/*      @SuppressWarnings("rawtypes")
      Cache c = manager.getManager().getCache(namedCache);
      
      if(c != null) {
    	  f = new TreeCacheFactory();
    	  treeCache = f.createTreeCache(c);
    	  //this.treeCache = (TreeCache)c;
    	  return;
      }*/
      
      
      Configuration config = new ConfigurationBuilder()
    		   .persistence().passivation(false)
    		   .addSingleFileStore()
    		   .segmented(false)
    		   .location(location).async().enable()
    		   .preload(false).shared(false)
    		   .invocationBatching().enable()
    		   .build();
      
      manager.getManager().defineConfiguration(namedCache, config);

      final Cache<String, String> cache = manager.getManager().getCache(namedCache);
      
      f = new TreeCacheFactory();
      treeCache = f.createTreeCache(cache);
      cache.start();

      LOGGER.debug("CMS started");



    } catch (Exception e) {
      LOGGER.error("Error while instantiating CmsImageFileManager", e);
    } finally {

    }



  
<no_super_class>