public boolean isWirelessModuleEnabled(ISniffingModule module) {
    synchronized (lock) {
      while (moduleRecords == null) {
        try {
          lock.wait();
        } catch (InterruptedException e) {
          Thread.currentThread().interrupt();
          return false;
        }
      }

      for (ModuleRecord record : moduleRecords) {
        if (record.getName().equals(module.getName())) {
          return record.isEnabled();
        }
      }
    }
    getLogger().warning("Wireless module not found for name " + module.getName());
    return false;
  }
 public void setWirelessEnabled(ISniffingModule module, boolean enable) {
   final ModuleRecord moduleRecord = new ModuleRecord(module.getName(), enable);
   enqueue(new SetWirelessModuleEnableState(moduleRecord));
 }