public Map<String, CacheStatusResponse> handleStatusRequest(int viewId) {
Map<String, CacheStatusResponse> response = new HashMap<String, CacheStatusResponse>();
for (Map.Entry<String, LocalCacheStatus> e : runningCaches.entrySet()) {
String cacheName = e.getKey();
LocalCacheStatus cacheStatus = runningCaches.get(cacheName);
AvailabilityMode availabilityMode = cacheStatus.getPartitionHandlingManager() != null ?
cacheStatus.getPartitionHandlingManager().getAvailabilityMode() : null;
response.put(e.getKey(), new CacheStatusResponse(cacheStatus.getJoinInfo(),
cacheStatus.getCurrentTopology(), cacheStatus.getStableTopology(),
availabilityMode));
}