public static Module module(final CodecRegistry registry) {
    Preconditions.checkNotNull(registry, "registry");
    return new Module() {
      @Override
      public String getModuleName() {
        return JacksonCodecs.class.getSimpleName();
      }

      @Override
      public Version version() {
        return Version.unknownVersion();
      }

      @Override
      public void setupModule(SetupContext context) {
        context.addSerializers(serializers(registry));
      }
    };
  }
Utility class to convert to / from {@link CodecRegistry} and {@link ObjectMapper}.

<p>Please note that Jackson support is currently experimental.
mongo/src/org/immutables/mongo/bson4jackson/JacksonCodecs.java