}
else if ( "none".equals( lockFactoryName ) ) {
return NoLockFactory.getNoLockFactory();
}
else {
LockFactoryProvider lockFactoryFactory = ClassLoaderHelper.instanceFromName(
LockFactoryProvider.class,
lockFactoryName, DirectoryProviderHelper.class, LOCKING_STRATEGY_PROP_NAME
);
return lockFactoryFactory.createLockFactory( indexDir, dirConfiguration );
}
}