 ###
 
 class PubsubRequest extends Request
-    constructor: (stanza) ->
-        super
-
-        @pubsubEl = @iq.getChild("pubsub", NS.PUBSUB)
+    xmlns: NS.PUBSUB
+
+    constructor: (stanza) ->
+        super
+
+        @pubsubEl = @iq.getChild("pubsub", @xmlns)
         @setActor @pubsubEl
 
     matches: () ->


    reply: (child) ->
        if child?
            pubsubEl = new xmpp.Element("pubsub", { xmlns: NS.PUBSUB })
            pubsubEl.cnode child
            super pubsubEl
        else

##
# *Owner* is not related to a required affiliation. The derived
# *operations are all requested with the pubsub#owner xmlns.
class PubsubOwnerRequest extends PubsubRequest
    xmlns: NS.PUBSUB_OWNER

# <iq type='get'
#     from='hamlet@denmark.lit/elsinore'
