return partition;
}
private static DefaultDirectoryService createDirectory( Partition rootPartition, File workDir ) throws Exception {
DefaultDirectoryService directory = new DefaultDirectoryService();
directory.addPartition( rootPartition );
directory.setExitVmOnShutdown( false );
directory.setShutdownHookEnabled( true );
directory.getChangeLog().setEnabled( false );
directory.setDenormalizeOpAttrsEnabled( true );
directory.setWorkingDirectory( initWorkDir( null ) );