SequentialFileFactory factory;
int maxAIO;
if (AsynchronousFileImpl.isLoaded())
{
factory = new AIOSequentialFileFactory(dir.getPath());
maxAIO = ConfigurationImpl.DEFAULT_JOURNAL_MAX_IO_AIO;
}
else
{
factory = new NIOSequentialFileFactory(dir.getPath(), true);