try {
if (collectionName.startsWith("system.")) {
throw new MongoServerError(16459, "attempt to insert in system namespace");
}
final MongoCollection collection = resolveOrCreateCollection(collectionName);
int n = collection.insertDocuments(documents);
assert n == documents.size();
final BSONObject result = new BasicBSONObject("n", Integer.valueOf(n));
putLastResult(channel, result);
return result;
} catch (MongoServerError e) {