for (int i = 0; i < noOfDatabases; i++)
{
File f = FileSupport.createTempFile();
ReadWritableFile ff = new ReadWritableFileAdapter(f);
File tmpDir = FileSupport.createTempDirectory();
Directory tmpDirD = new FSRWFileSystemBuilder().setRoot(tmpDir).create().getRootDirectory();
DatabaseBackendFactory<Integer, Long, Long> baf = new ConstantRecordSizeHeapBackendFactory<Integer, Long>(IntegerSerializer.INSTANCE, LongSerializer.INSTANCE, 0, 8192, lah);
ShadowCopyTransactionalDatabase<Integer, Long, Long> db = new ShadowCopyTransactionalDatabase<Integer, Long, Long>(new SingleFileManager(ff, tmpDirD), baf, false, lah);
m_dbFiles.put(System.identityHashCode(db), new File[] { f, tmpDir });
m_databases.add(db);