public Builder codecRegistry(CodecRegistry registry, FieldNamingStrategy fieldNamingStrategy) {
      this.codecRegistry = checkNotNull(registry, "registry");
      this.fieldNamingStrategy = checkNotNull(fieldNamingStrategy, "fieldNamingStrategy");
      return this;
    }
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>Also allows user to register custom naming strategy if POJOs have different property names
when serialized (important for correct querying).

@param registry existing registry
@param fieldNamingStrategy allows to customize property names in queries
@return {@code this} same instance of the builder
@throws NullPointerException if one of arguments is null
mongo/src/org/immutables/mongo/repository/RepositorySetup.java