correct. afaik, the 'value' can only contain Strings, or the likes, no maps, lists etc...
Can you clarify what this part of the documentation means?
maps. In this case, each element of the field-element is expected to have one subelement key and one element value. The key and element are both parsed using the conversion rules recursively. Just the same as with collections, a conversion to java.lang.String is assumed if no type attribute is specified.
I would have figured that parsing the elements recursively meant that the elements could any type, and that they'd be parsed like a base element. Maybe I'm misinterpreting what the docs are saying?
Yes, you are 'misinterpreting' the docs. You can pass in maps, collections etc, but each value can only be a simple type (String, Integer etc, but no map, list, collection)
You *can* pass in arbitrary complex XML structures that will be converted to Document if you use that as the type in your class