in old/dekaf-core/src/main/java/org/jetbrains/dekaf/jdbc/JdbcIntermediateFederatedProvider.java [133:149]
private IntegralIntermediateRdbmsProvider findTheBestFor(final String connectionString) {
SpecificProvider theBest = null;
for (SpecificProvider sp : myBestProviders.values()) {
if (matches(connectionString, sp.provider.connectionStringPattern())) {
if (theBest == null || sp.specificity < theBest.specificity) {
theBest = sp;
}
}
}
if (theBest != null) {
return theBest.provider;
}
else {
throw new DBFactoryException(String.format("No providers registered for connection string \"%s\"", connectionString));
}
}