private void ReleaseLockCallable(Guid uuid)
 {
     if (currentLock != null)
     {
         if (currentLock.getGuid() == uuid)
         {
             currentLock = null;
         }
     }
 }
        private void AcquireLock(LockCallBack callBack, long timeout)
        {
            if (currentLock != null)
            {
                try
                {
                    callBack.run(null, true);
                }
                catch (Exception)
                {
                }
            }
            else
            {
                Guid lockUUID = Guid.NewGuid();
                currentLock = new TupleLockCallBack(callBack, lockUUID);

                try
                {
                    callBack.run(lockUUID, false);
                }
                catch (Exception)
                {

                }
            }
        }