@Override
      public <T> Codec<T> get(final Class<T> clazz) {
        final JavaType javaType = TypeFactory.defaultInstance().constructType(clazz);
        if (!mapper.canSerialize(clazz) || !mapper.canDeserialize(javaType)) {
          throw new CodecConfigurationException(String.format("%s (javaType: %s) not supported by Jackson Mapper", clazz, javaType));
        }
        return new JacksonCodec<>(clazz, mapper);
      }
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