public static synchronized void clearRegionFileReferences() {
      Iterator var0 = regionsByFilename.values().iterator();

      while(var0.hasNext()) {
         Reference var1 = (Reference)var0.next();

         try {
            RegionFile var2 = (RegionFile)var1.get();
            if(var2 != null) {
               var2.close();
            }
         } catch (IOException var3) {
            var3.printStackTrace();
         }
      }

      regionsByFilename.clear();
   }