public void refreshCaches() throws RegistryErrorException
  {
    if(isCachingActive())
    {
      if(caches != null && caches.size() > 0)
      {
        List tmpCache = (List) caches.clone();
        caches = new ArrayList();
        for (int x = 0; tmpCache != null && x != tmpCache.size(); x++)
        {
          CachedEntry entry = (CachedEntry) tmpCache.get(x);
          if (entry != null)
          {
            String key = entry.getKey();
            cacheKeys(key, 1);
          }
        }

      }
    }
  }