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