}
private Set<String> getDataSourceNames(ClassLoader classLoader) {
Set<String> result = new HashSet<String>();
JDBCConfig config = Beans.getReference(JDBCConfig.class);
if (config.getJndiName() != null) {
result.addAll(config.getJndiName().keySet());
}
if (config.getDriverClass() != null) {
result.addAll(config.getDriverClass().keySet());
}
if (result.isEmpty()) {
throw new DemoiselleException(getBundle().getString("datasource-name-not-found"));
}