@Override
public DBObject decode(InputStream in, DBCollection collection)
throws IOException {
DBCallback cbk = getDBCallback(collection);
cbk.reset();
decode(in, cbk);
return (DBObject) cbk.get();
}
@Override
public DBCallback getDBCallback(DBCollection collection) {