}
private static Repository createRepository(File dataDir)
throws StoreException
{
sail = new SailImpl();
sail = new AccessControlSail(sail);
Repository repository = new SailRepository(sail);
repository.setDataDir(dataDir);
repository.initialize();
return repository;