public void init() {
   discoveredSensors = new Vector<HashMap<String, String>>();
   things = new Vector<HashMap<String, String>>();
   ta.setDiscoveredSensors(things);
   ids = new ArrayList<String>();
   current = new ArrayList<String>();
 }
  public void run() {

    try {
      while (true) {
        discoveredSensors = adaptationPlugin.discover();
        if (null != discoveredSensors && discoveredSensors.size() > 0) {
          current = getIds();
          this.checkConnected();
          this.checkDisconnected();
          ta.setDiscoveredSensors(things);
          ids = current;
        }
        Thread.sleep(10000);
      }
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
    }
  }