code: public static Map<?, ?> getEmptyImplementationForMapInterface(final Class<?> mapInterface) {
          Map<?, ?> map = new HashMap<>();
          if (ConcurrentNavigableMap.class.isAssignableFrom(mapInterface)) {
              map = new ConcurrentSkipListMap<>();
          } else if (ConcurrentMap.class.isAssignableFrom(mapInterface)) {
              map = new ConcurrentHashMap<>();
          } else if (NavigableMap.class.isAssignableFrom(mapInterface)) {
              map = new TreeMap<>();
          } else if (SortedMap.class.isAssignableFrom(mapInterface)) {
              map = new TreeMap<>();
          }
          return map;
      }
docs: Return an empty implementation for the given {@link Map} interface.
  @param mapInterface for which an empty implementation should be returned
  @return empty implementation for the given {@link Map} interface.