Connection connection = connectionSupplier.openConnection();
database.setConnection(new JdbcConnection(connection));
break;
} catch (SQLException e) {
System.out.println("Cannot connect to "+connectionSupplier.getJdbcUrl());
database.setConnection(new OfflineConnection("offline:"+database.getShortName()));
}
}
}
}
return allDatabases;