in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/InternalConnectorRegistry.java [118:129]
public void register(String name, ConnectorConfig config) {
synchronized (shutdownGuard) {
if (shutdown) {
throw new IllegalStateException("ConnectorRegistry was shut down.");
}
}
if (this.namedConnectors.containsKey(name)) {
throw new IllegalArgumentException("Named connection " + name + " exists.");
}
this.namedConnectors.put(name, createConnector(config));
}