}
else if ( lockMode == LockMode.PESSIMISTIC_READ ) {
return new MapPessimisticReadLockingStrategy( lockable, lockMode );
}
else if ( lockMode == LockMode.OPTIMISTIC ) {
return new OptimisticLockingStrategy( lockable, lockMode );
}
else if ( lockMode == LockMode.OPTIMISTIC_FORCE_INCREMENT ) {
return new OptimisticForceIncrementLockingStrategy( lockable, lockMode );
}
return new MapPessimisticWriteLockingStrategy( lockable, lockMode );