Description
invoking any of the action/invoke resources (in the usual fashion) with an Accept header of
"application/xml;profile=urn:org.restfulobjects:repr-types/action-result;x-ro-domain-type=todoapp.dto.module.todoitem.ToDoItemDto"
will check that the returned object is of the specified type, and return it as XML payload.
Otherwise will return a 406.
If there is no Accept header or is "application/json", then retain original behaviour.