To define a Map, you can follow this sample:
<java.util.HashMap id="aMap">
<entry>
<string Injection="key" value="aKey"/>
<string Injection="value" value="aValue"/>
</entry>
<entry>
<string Injection="key" value="anotherKey"/>
<string Injection="value" value="anotherValue"/>
</entry>
</java.util.HashMap>
If your key or value of the map entry is in the type of
java.lang.String, you can define it as follows:
<java.util.HashMap id="aMap">
<entry key="aKey" value="aValue"/>
<entry key="anotherKey" value="anotherValue"/>
</java.util.HashMap>