super(serializer);
}
@Override
public void serialize(Object obj, StringBuilder buf) {
DBRefBase ref = (DBRefBase) obj;
BasicDBObject temp = new BasicDBObject();
temp.put("$ref", ref.getRef());
temp.put("$id", ref.getId());
serializer.serialize(temp, buf);
}