exposeMethod method rewrited with object namespace