code: public Object getMapElement(Object o, String key) {
          return ((Map)o).get(key);
      }
docs: Given an instance for which the type reported {@code isMap()==true}, obtains the element
  of the specified index.