public static TypeAdapter<Long> timeInstantAdapter() {
    return TIME_INSTANT_ADAPTER;
  }
Use this adapter to easily delagate marshaling of custom time instant wrapper.
@return {@code Long <==> UTCDate} adapter
mongo/src/org/immutables/mongo/types/TypeAdapters.java