You may find working example with description here:

https://github.com/Inflectra/rapise-samples/tree/master/UseObjectsFromMaps