// for now connectorId == catalogName
String connectorId = catalogName;
checkState(!connectors.containsKey(connectorId), "A connector %s already exists", connectorId);
ConnectorFactory connectorFactory = connectorFactories.get(connectorName);
Preconditions.checkArgument(connectorFactory != null, "No factory for connector %s", connectorName);
Connector connector = connectorFactory.create(connectorId, properties);
connectors.put(connectorId, connector);
addConnector(catalogName, connectorId, connector);
}