url = "jdbc:hsqldb:hsql://localhost:" + port + "/" + databaseName +";shutdown=true";
logger.info("Starting Hypersonic Database '" + url + "'.");
new Thread() {
@Override
public void run() {
Server server = new Server();
Log targetLogger = LogFactory.getLog("org.hsqldb");
server.setLogWriter(new PrintWriter(new StdoutToLog4jFilter(server.getLogWriter(), targetLogger)));
server.setDatabasePath(0, "target/hsql/" + databaseName);
server.setDatabaseName(0, databaseName);
server.setNoSystemExit( true );
server.setSilent( true );
server.setPort(port);
server.start();
hsqlServer = server;
startGate.countDown();
}