public void deleteCaches()
  {
    if(isCachingActive())
    {
      for (int x = 0; caches != null && x != caches.size(); x++)
      {
        CachedEntry entry = (CachedEntry) caches.get(x);
        if (entry != null)
        {
          List children = entry.getChildren();
          if (children != null)
            children.clear();
          List entries = entry.getEntries();
          if (entries != null)
            entries.clear();
        }
      }
      caches.clear();
      caches = null;
    }
  }