How to store an embedded map in OrientDB with document api?
<p>I tried: </p>

<pre><code>Map&lt;String, ODocument&gt; myEntries = new HashMap&lt;&gt;();
//fill the map
...
doc.field("mymap", myEntries, OType.EMBEDDEDMAP);
</code></pre>

<p>but it gives me:</p>

<blockquote>
  <p>java.lang.ClassCastException: com.orientechnologies.orient.core.db.record.OTrackedMap cannot be cast to java.util.List</p>
</blockquote>

<p>What am I doing wrong?</p>