if (!jses.isEmpty()) {
for (final Entry<String, String> entry : jses.entrySet()) {
if (Strings.isBlank(entry.getValue()))
continue;
db.getCollection("system.js").update(new BasicDBObject("_id", entry.getKey()),
new BasicDBObject("$set", new BasicDBObject("value", new Code(entry.getValue()))),
true, false);
}
}
return map;
}