public Builder codecRegistry(CodecRegistry registry) {
      return codecRegistry(registry, FieldNamingStrategy.DEFAULT);
    }
Register custom codec registry to serialize and deserialize entities using
<a href="http://mongodb.github.io/mongo-java-driver/3.8/bson/codecs/">BSON</a>.

<p>Please note that if you employ custom property naming (eg {@code @PropertyName} for
<a href="https://github.com/FasterXML/jackson">jackson</a>
or {@code @SerializedName} for <a href="https://github.com/google/gson">gson</a>) you need
to register {@link FieldNamingStrategy} otherwise mongo queries might not work correctly. Use
{@link #codecRegistry(CodecRegistry, FieldNamingStrategy)} for that. For additional information
consult documentation on {@link FieldNamingStrategy}.

@param registry set of codecs to be used for serialization
@return {@code this} same instance of the builder
@throws NullPointerException if one of arguments is null
mongo/src/org/immutables/mongo/repository/RepositorySetup.java