if (contextMap != null) {
for (Map.Entry<Contextual, ViewScopeContextObject> entry : contextMap.entrySet()) {
Contextual contextual = entry.getKey();
ViewScopeContextObject contextObject = entry.getValue();
CreationalContext creationalContext = contextObject.getCreationalContext();
contextual.destroy(viewMap.get(contextObject.getName()), creationalContext);
removalNameList.add(contextObject.getName());
}
Iterator<String> removalNames = removalNameList.iterator();
while (removalNames.hasNext()) {