}
else if ( "single".equals( lockFactoryName ) ) {
return new SingleInstanceLockFactory();
}
else if ( "none".equals( lockFactoryName ) ) {
return new NoLockFactory();
}
else {
LockFactoryFactory lockFactoryFactory = ClassLoaderHelper.instanceFromName( LockFactoryFactory.class,
lockFactoryName, DirectoryProviderHelper.class, "locking_strategy" );
return lockFactoryFactory.createLockFactory( indexDir, dirConfiguration );