I'm not a big fan of this approach. Its much more flexible to just have a the full URL be set inside the XML document you get from the server, though I don't have control over this.