Objects.requireNonNull(partition, "partition cannot be null");
Objects.requireNonNull(driver, "driver cannot be null");</BUG>
Objects.requireNonNull(vertexIdProvider, "vertexIdProvider cannot be null");
Objects.requireNonNull(edgeIdProvider, "edgeIdProvider cannot be null");
Objects.requireNonNull(propertyIdProvider, "propertyIdProvider cannot be null");
<BUG>this.partition = partition.clone();
this.driver = driver;</BUG>
this.vertexIdProvider = vertexIdProvider;
this.edgeIdProvider = edgeIdProvider;
this.propertyIdProvider = propertyIdProvider;

Objects.requireNonNull(partition, "partition cannot be null");
Objects.requireNonNull(vertexLabels, "vertexLabels cannot be null");
Objects.requireNonNull(driver, "driver cannot be null");
Objects.requireNonNull(vertexIdProvider, "vertexIdProvider cannot be null");
Objects.requireNonNull(edgeIdProvider, "edgeIdProvider cannot be null");
Objects.requireNonNull(propertyIdProvider, "propertyIdProvider cannot be null");
this.partition = partition;
this.vertexLabels = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(vertexLabels)));
this.driver = driver;
this.vertexIdProvider = vertexIdProvider;
this.edgeIdProvider = edgeIdProvider;
this.propertyIdProvider = propertyIdProvider;
