@Override
   public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
      // TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
      CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
      cache = cacheHolder.getClusteredLockCache();
      ClusteredLockKey key = new ClusteredLockKey(ByteString.fromString(name));
      ClusteredLockValue clusteredLockValue = cache.putIfAbsent(key, ClusteredLockValue.INITIAL_STATE);
      locks.putIfAbsent(name, new ClusteredLockImpl(name, key, cache, this));
      return clusteredLockValue == null;
   }
@Override
   public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
     
      CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
      cache = cacheHolder.getClusteredLockCache();
      ClusteredLockKey key = new ClusteredLockKey(ByteString.fromString(name));
      ClusteredLockValue clusteredLockValue = cache.putIfAbsent(key, ClusteredLockValue.INITIAL_STATE);
      locks.putIfAbsent(name, new ClusteredLockImpl(name, key, cache, this));
      return clusteredLockValue == null;
   }
@override public boolean definelock(string name, clusteredlockconfiguration configuration) { cacheholder cacheholder = extractcacheholder(cacheholderfuture); cache = cacheholder.getclusteredlockcache(); clusteredlockkey key = new clusteredlockkey(bytestring.fromstring(name)); clusteredlockvalue clusteredlockvalue = cache.putifabsent(key, clusteredlockvalue.initial_state); locks.putifabsent(name, new clusteredlockimpl(name, key, cache, this)); return clusteredlockvalue == null; }