try {
                     Thread.sleep(lockWait * 1000);
                 } catch (InterruptedException ex) {
+                    log.error("Interrupted Exception", ex);
                 }
             }
         }
 
     @Override
     public void unlock(Collection<String> lockNames, boolean force) {
-        if (lockNames == null || lockNames.size() == 0) {
+        if (lockNames == null || lockNames.isEmpty()) {
             return;
         }
 
     }
 
     public void tryLock(Collection<String> resourceNameList, String lockRequester, int lockTimeout /* Seconds */) {
-        if (resourceNameList == null || resourceNameList.size() == 0) {
+        if (resourceNameList == null || resourceNameList.isEmpty()) {
             return;
         }