if (id != null) {
feeder.submitContentItemByID(id, indexName);
} else if (path != null) {
if (!recursive) {
feeder.submitContentItemByPath(path, indexName);
} else {
feeder.submitContentItemsUnderPath(path, indexName);
}
} else {
return Response.status(Status.BAD_REQUEST)