class TargetCayenneService implements ITargetCayenneService {

	@Override
	public Map<String, DataSource> dataSources() {

		Map<String, DataSource> dataSources = new HashMap<>();

		for (DataNode n : runtime.getDataDomain().getDataNodes()) {

			// this method is used to seed a special kind of JdbcConnector.
			// But note that the DataSource here is attached to the DataNode
			// transaction, so reading source data will happen over the same
			// connection as writing target data. Hopefully such multiplexing
			// the connection works ok...

			dataSources.put(n.getName(), n.getDataSource());
		}

		return dataSources;
	}

	public  TargetCayenneService(ServerRuntime runtime);

}