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