code: @Override
      public byte[] getBinaryValue(Base64Variant b64variant) throws IOException {
          Object n = currentNode();
          if (n instanceof byte[]) {
              return (byte[]) n;
          } else if (n instanceof org.bson.types.ObjectId) {
              return ((org.bson.types.ObjectId) n).toByteArray();
          }
          return null;
      }
  
      @Override
      public Object getEmbeddedObject() throws IOException, JsonParseException {
          return currentNode();
      }
  
      /*
     /**********************************************************
     /* Internal methods
     /**********************************************************
      */
  
      protected Object currentNode() {
          if (closed || nodeCursor == null) {
              return null;
          }
          return nodeCursor.currentNode();
      }
docs: /*
  ********************************************************
  /* Public API, typed binary (base64) access
  ********************************************************