       "#{name}#{url}"
 
   class ServerClient
-    constructor:->
-      @lock = new Lock
+    constructor:(options)->
+      @lock = new Lock {accept_logs:options.accept_logs}
+      @initialize.apply this, arguments
+
+    initialize:->
+      #for overwrite
 
     _isServer:-> true
 

define ["jquery"],($)->

  class Lock
    constructor:->
      @_locks = {}
      @initialize.apply this, arguments

    initialize:->
      #for overwrite

    trylock:(url, name)->
      key = @hash url, name
      if !!@_locks[key]
        false
      else
        @_locks[key] = true

        @_locks[key] = null
        true
      else
        console.warn "unlock #{url} #{name}" if @accept_logs
        false

    hash:(url,name)->
