code: public static void flushBundleCache(String baseName, boolean flushPermanent) {
  
          if (baseName != null) {
              synchronized (m_bundleCache) {
  
                  // first check and clear the bundle cache
                  Map<BundleKey, ResourceBundle> bundleCacheNew = new ConcurrentHashMap<BundleKey, ResourceBundle>(
                      m_bundleCache.size());
                  for (Map.Entry<BundleKey, ResourceBundle> entry : m_bundleCache.entrySet()) {
                      if (!entry.getKey().isSameBase(baseName)) {
                          // entry has a different base name, keep it
                          bundleCacheNew.put(entry.getKey(), entry.getValue());
                      }
                  }
                  if (bundleCacheNew.size() < m_bundleCache.size()) {
                      // switch caches if only if at least one entry was removed
                      m_bundleCache = bundleCacheNew;
                  }
                  if (flushPermanent) {
                      flushPermanentCache(baseName);
                  }
              }
          }
      }
docs: Flushes all variations for the provided bundle from the cache.<p>
  
  @param baseName the bundle base name to flush the variations for
  @param flushPermanent if true, the cache for additional message bundles will be flushed, too