Statement statement = c.createStatement();
ResultSet result = statement.executeQuery("select count(*) as c from LOG where log = 'insert datasources'");
result.next();
if (result.getInt("c") == 0) {
LegacyImporter l = new LegacyImporterImpl(dsm);
l.importSchema();
l.importDatasources();
statement.execute("INSERT INTO LOG(log) VALUES('insert datasources');");
}
}