chore(xml): use logger for exception generation
test(json): add script tests for json to java mapping

related to #CAM-2430