@Override
public void delete(final ObjectSpecId objectSpecId, final String mongoId, final String version, final Oid oid) {
final DBCollection instances = db.getCollection(objectSpecId.asString());
final DBObject object = instances.findOne(mongoId);
if (!object.get(PropertyNames.VERSION).equals(version)) {
throw new ConcurrencyException("Could not delete object of different version", oid);
}
instances.remove(object);
LOG.info("removed " + oid);
}