configurator.setProperty("hibernate.connection.url", "jdbc:hsqldb:.");
configurator.setProperty("hibernate.show_sql", "false");
configurator.setProperty("hibernate.format_sql", "true");
configurator.setProperty("hibernate.use_sql_comments", "true");
configurator.setProperty("hibernate.hbm2ddl.auto", "create");
factory = configurator.buildEntityManagerFactory();
manager = factory.createEntityManager();
// Always create a bunch of nodes in a workspace that is not used, so we're sure that these
// tests work only on the workspace used in the test
NamespaceEntity ns = NamespaceEntity.findByUri(manager, "http://www.example.com");