protected boolean lock(String action, Date timeToBreakLock, Date timeLockAquired, String serverId) { try { return sqlTemplate.update(getSql("aquireLockSql"), new Object[] { serverId, timeLockAquired, action, timeToBreakLock, serverId }) == 1; } catch (ConcurrencySqlException ex) { log.debug("Ignoring concurrency error and reporting that we failed to get the cluster lock: {}", ex.getMessage()); return false; } }