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