public DBObject decode(InputStream in, DBCollection collection) throws IOException {
   DBCallback cbk = getDBCallback(collection);
   cbk.reset();
   decode(in, cbk);
   return (DBObject) cbk.get();
 }
 public DBObject decode(byte[] b, DBCollection collection) {
   DBCallback cbk = getDBCallback(collection);
   cbk.reset();
   decode(b, cbk);
   return (DBObject) cbk.get();
 }