/* (non-Javadoc)
  * @see it.eng.qbe.naming.NamingStrategy#getDatasourceName(java.util.List, it.eng.qbe.datasource.DBConnection)
  */
 public String getDataSourceName(IDataSourceConfiguration configuration) {
   IDataSource connection =
       (IDataSource) configuration.loadDataSourceProperties().get("datasource");
   List<String> modelNames = new ArrayList<String>();
   if (configuration instanceof CompositeDataSourceConfiguration) {
     CompositeDataSourceConfiguration cc = (CompositeDataSourceConfiguration) configuration;
     Iterator<IDataSourceConfiguration> it = cc.getSubConfigurations().iterator();
     while (it.hasNext()) modelNames.add(it.next().getModelName());
   } else {
     modelNames.add(configuration.getModelName());
   }
   String datasourceName = getDatasourceUnqualifiedName(modelNames, connection);
   return datasourceName + STRING_SEPARETOR + DATASOURCE_NAME_SUFFIX;
 }
  private void doLoadConfTest(File jarFile) throws Exception {

    IDataSourceConfiguration configuration;
    configuration = new FileDataSourceConfiguration(modelName, jarFile);
    configuration.loadDataSourceProperties().put("connection", connectionDescriptor);

    configuration.loadCalculatedFields();
    configuration.loadDataSourceProperties();
    configuration.loadModelI18NProperties();
    configuration.loadModelI18NProperties(Locale.getDefault());
    configuration.loadViews();
    configuration.loadModelProperties();
  }