I just realized something. You are trying to convert the XML returned
from the MDRs into POJOs. The original intent for the consumer of the
transformations was the MDRs themselves. I.e. the MDR would create the
query response as POJOs, and those would be converted into XML to be
returned to the client. Since the client can be a UI that displays the
query result as XML, we had not designed the transformation code to
handle query results from multiple MDRs.
That said, I think this is a valid usage, and we can still likely make
things work via the approach we discussed previously of inspecting the
query result XMLs and routing the conversion to one of several
domain-specific handlers.