public static TypeAdapter<byte[]> objectIdAdapter() {
    return OBJECT_ID_ADAPTER;
  }
Use this adapter to easily delagate marshaling of custom ObjectID wrapper.
@return {@code byte[] <==> ObjectID} adapter
mongo/src/org/immutables/mongo/types/TypeAdapters.java