protected void start() {
    // Get the Service XML from the device
    try {
      URL url = new URL(m_scpdUrl);
      XmlPullParser p = new KXmlParser();
      p.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
      p.setInput(url.openConnection().getInputStream(), null);

      while (p.getEventType() != XmlPullParser.END_DOCUMENT) {
        if (p.getEventType() == XmlPullParser.START_TAG
            && p.getName().equalsIgnoreCase("actionList")) {
          parseActionList(p);
        } else if (p.getEventType() == XmlPullParser.START_TAG
            && p.getName().equalsIgnoreCase("serviceStateTable")) {
          parseStateVariables(p);
        }
        p.next();
      }

      m_eventHandler.registerService(this);
    } catch (FileNotFoundException e1) {
      log.error("Given url not found (Error 404): " + m_scpdUrl);

    } catch (Exception ee) {
      ee.printStackTrace();
    }
  }
 protected void stop() {
   m_eventHandler.unregisterService(this);
 }