@Override
        public Integer call() {
          T result = collection().findOneAndUpdate(
                  convertToBson(criteria),
                  convertToBson(update),
                  options);

          return result == null ? 0 : 1;
        }
Codec used for current collection type.
@return registry
mongo/src/org/immutables/mongo/repository/Repositories.java