484950515253545556
// create an appropriate processor if (payloadFormat == PayloadFormat.JSON) { // create a JSON exchange processor processor = new JsonRestProcessor(endpoint); } else { processor = new XmlRestProcessor(endpoint); } } }