code: public static <K, V, M extends Map<K, V>> M toMap(
        final Iterable<Pair<K, V>> pairs, final Class<M> mapType) {
      try {
        final M map = mapType.newInstance();
        return toMap(pairs, map);
      } catch (final Exception exc) {
        return null;
      }
    }
docs: Creates a {@link Map} of the given <code>mapType</code> from an
  {@link Iterable} of pairs <code>(k, v)</code>.
  
  @since 1.0.0
  
  @param pairs
  The pairs.
  @param mapType
  The map type (must have a public default constructor).
  @return The map populated with the values from <code>pairs</code> or
  <code>null</code>, if the Map could not be instantiated.