code: @Beta
      public static <K, V> Map<K, V> fromDictionary(Dictionary<K, V> dictionary) {
          checkArgument(dictionary != null, "Expected non-null dictionary");
  
          ImmutableMap.Builder<K, V> builder = ImmutableMap.builder();
  
          for (Enumeration<K> keys = dictionary.keys(); keys.hasMoreElements(); ) {
              K key = keys.nextElement();
              V value = dictionary.get(key);
              builder.put(key, value);
          }
  
          return builder.build();
      }
docs: Convert a {@link Dictionary} to a {@link Map}
  
  @param dictionary the dictionary to convert
  @param <K>        the key type
  @param <V>        the value type
  @return the resulting map