code: private void checkMapSize(LinkedHashMap<?, ?> map) {
  
          while (map.size() > CmsADEManager.DEFAULT_ELEMENT_LIST_SIZE) {
              map.remove(map.keySet().iterator().next());
          }
      }
docs: Checks map size to remove entries in case it exceeds the default list size.<p>
  
  @param map the map to check