Same https://github.com/telefonicaid/fiware-orion/pull/258/files#r10250294

Side-note: it seems that we have blocks of code that are mostly the same in JSON and XML parsing. Does it make sense to factorize? (probably not in this PR, but as a future issue)