static void addConnectionProperties(BasicDataSource dataSource) {
SQLiteConfig config = new SQLiteConfig();
config.setSharedCache(true);
config.enableLoadExtension(true);
config.enableSpatiaLite(true);
for (Map.Entry e : config.toProperties().entrySet()) {
dataSource.addConnectionProperty((String)e.getKey(), (String)e.getValue());
}
}