public void Initialize() { XmlDocument configDoc = new XmlDocument(); configDoc.Load(this.GetType().Assembly.Location + ".config"); XmlNode restService = configDoc.SelectSingleNode("configuration/restservice"); RequestListener = new RESTRequestListener(ReadHost(restService), ReadBaseURL(restService)); RequestListener.Initialize(); RequestDispatcher.Instance.RegisterHandler(new RESTSceneAPI()); }