if (jndi != null) {
result = initJNDIDataSource(dataSourceName, jndi);
} else if (url != null) {
result = new BasicDataSourceProxy(dataSourceName, config, bundle);
} else {
throw new DemoiselleException(bundle.getString("uncompleted-datasource-configuration", dataSourceName));
}