     attach_handlers = ->
         connection = @wamp_connection or global.WAMP_CONNECTION
 
-        get_uri =
-            if (
-                _.has(@, "wamp_get_uri")  or
-                _.has(@constructor::, "wamp_get_uri")
-            )
-                @wamp_get_uri
-            else
-                global.WAMP_GET_URI or @wamp_get_uri
+        get_uri = @wamp_get_uri or global.WAMP_GET_URI or wamp_get_uri
 
         _.each actions, (action)=>
             connection.session.register(

                    global `WAMP_MY_ID` or `wamp_my_id` property/method
                "

        wamp_get_uri : wamp_get_uri



    [WAMP_Model, WAMP_Collection]

                    global `WAMP_MY_ID` or `wamp_my_id` property/method
                "



    class WAMP_Collection extends Backbone.Collection
