in commons-email2-jakarta/src/main/java/org/apache/commons/mail2/jakarta/resolver/DataSourceCompositeResolver.java [78:89]
public DataSource resolve(final String resourceLocation, final boolean isLenient) throws IOException {
for (final DataSourceResolver dataSourceResolver : dataSourceResolvers) {
final DataSource dataSource = dataSourceResolver.resolve(resourceLocation, isLenient);
if (dataSource != null) {
return dataSource;
}
}
if (isLenient) {
return null;
}
throw new IOException("The following resource was not found : " + resourceLocation);
}