docs: ConstructorFunction<Void, RecordFactory> createRecordFactoryConstructor(final SerializationService serializationService) {
          return notUsedArg -> {
              switch (mapConfig.getInMemoryFormat()) {
                  case BINARY:
                      return new DataRecordFactory(mapConfig, serializationService, partitioningStrategy);
                  case OBJECT:
                      return new ObjectRecordFactory(mapConfig, serializationService);
                  default:
                      throw new IllegalArgumentException("Invalid storage format: " + mapConfig.getInMemoryFormat());
              }
          };
      }