It'll be faster to do for(Map.Entry<String,Map<...>> entry : mappedModel.entrySet())

So you don't have to lookup mappedModel.get(serverType) but use entry.getValue() instead.