Use this instead:

```java
synchronized (RegionFileCache.class) {
    for (Iterator<Map.Entry<File, RegionFile> > iterator = RegionFileCache.a.entrySet().iterator) {
        Map.Entry<File,RegionFile> entry = iterator.next();
```