DBObject o = newDBOBbject(record);
String id = (String) o.get("_id");
if (id != null
&& this.dbCollection.findOne(new BasicDBObject("_id", o
.get("_id"))) != null) {
throw new CultureGraphException(Type.ALREADY_REGISTERED,
"Entity with id " + id + " has already been registered.");
}
this.dbCollection.save(o);
return o.get("_id").toString();
}