if ("".equals(documentData)) {
ApplicationException e = new DocumentException(ErrorCodes.DOCUMENT_DOES_NOT_EXIST, "Document Data Missing in Request Body");
result = formErrorResponse(logger, e);
} else {
DBObject document = (DBObject) JSON.parse(documentData);
result = documentService.insertDocument(dbName, collectionName, document);
}
break;
}
case DELETE: {
if ("".equals(_id)) {