class MapConverter implements ConditionalConverter<Map<?, ?>, Map<Object, Object>> {
  public Map<Object, Object> convert(MappingContext<Map<?, ?>, Map<Object, Object>> context) {<FILL_FUNCTION_BODY>}

  public MatchResult match(Class<?> sourceType, Class<?> destinationType) {
    return Map.class.isAssignableFrom(sourceType) && Map.class.isAssignableFrom(destinationType) ? MatchResult.FULL
        : MatchResult.NONE;
  }

  protected Map<Object, Object> createDestination(
      MappingContext<Map<?, ?>, Map<Object, Object>> context) {
    if (!context.getDestinationType().isInterface())
      return context.getMappingEngine().createDestination(context);
    if (SortedMap.class.isAssignableFrom(context.getDestinationType()))
      return new TreeMap<Object, Object>();
    return new HashMap<Object, Object>();
  }
}

    Map<?, ?> source = context.getSource();
    if (source == null)
      return null;

    Map<Object, Object> destination = context.getDestination() == null ? createDestination(context)
        : context.getDestination();
    Mapping mapping = context.getMapping();

    Type keyElementType = Object.class;
    Type valueElementType = Object.class;
    if (mapping instanceof PropertyMapping) {
      PropertyInfo destInfo = mapping.getLastDestinationProperty();
      Class<?>[] elementTypes = TypeResolver.resolveRawArguments(destInfo.getGenericType(),
          Map.class);
      if (elementTypes != null && elementTypes.length == 2) {
        keyElementType = elementTypes[0] == Unknown.class ? Object.class : elementTypes[0];
        valueElementType = elementTypes[1] == Unknown.class ? Object.class : elementTypes[1];
      }
    } else if (context.getGenericDestinationType() instanceof ParameterizedType) {
      Type[] elementTypes = ((ParameterizedType) context.getGenericDestinationType()).getActualTypeArguments();
      keyElementType = elementTypes[0];
      valueElementType = elementTypes[1];
    }

    for (Entry<?, ?> entry : source.entrySet()) {
      Object key = null;
      if (entry.getKey() != null) {
        MappingContext<?, ?> keyContext = context.create(entry.getKey(), keyElementType);
        key = context.getMappingEngine().map(keyContext);
      }

      Object value = null;
      if (entry.getValue() != null) {
        MappingContext<?, ?> valueContext = context.create(entry.getValue(), valueElementType);
        value = context.getMappingEngine().map(valueContext);
      }

      destination.put(key, value);
    }

    return destination;
  
<no_super_class>