If class implements Map<K,V>, use these K and V as generic type args